github badeball/cypress-cucumber-preprocessor v24.0.0

9 hours ago

Breaking changes:

  • Removed support for using browserify as a bundler.

    • Browserify is largely unmaintained at this point and is making it impossible to keep dependencies up-to-date as Browserify itself does not do that. Furthermore, the Browserify bundler is deprecated by Cypress. If you'd still like to use Browserify, you can pin your dependency on @badeball/cypress-cucumber-preprocessor to ~23.x.y.

    • A branch named v23.x.y has been created to continue illustrating how to use Browserify. This is mentioned in the FAQ.

  • Bump node requirement slightly from v20.0.0 to ^20.12.0, ^21.7.0 or >=22.

    • This is in preperation of replacing chalk with util.styleText.

Other changes:

  • Run hooks (BeforeAll/AfterAll) may now be optionally named. This is in line with how cucumber-js behaves.

  • Allow step hooks to return skipped / pending.

    • This is similar to how steps themselves can also return the above mentioned literals. This is in line with how cucumber-js behaves.
  • Attachments (using log(), link() or attach()) can be added in test run hooks (BeforeAll/AfterAll). This is in line with how cucumber-js behaves.

  • Remove use of patch-package in development mode, which was causing some issues, closes #1255.

  • Add rudimentary support for videos in reports (messages & HTML), fixes #1139.

    • This can be enabled by setting attachments.addVideos to true.

    • Videos, as with screenshots, are base64-encoded inline within the reports, making them bigger. I suspect size might be an issue for large attachments and this is why I consider this to be rudimentary to begin with. As issues arise, options to externalize attachments might be considered.

Don't miss a new cypress-cucumber-preprocessor release

NewReleases is sending notifications on new releases.