Skip to content

Releases: badeball/cypress-cucumber-preprocessor

v17.0.0

01 May 15:14
Compare
Choose a tag to compare

Breaking changes:

  • Drop support for Cypress v9.

  • Node v18 or beyond is now required.

  • The package now utilizes Conditional Exports and you may have to set moduleResolution to node16 in your tsconfig.json depending on what parts of the package you use (assuming you're using TypeScript).

    • TypeScript users that are unable to upgrade moduleResolution to node16, can use the paths property as a workaround, like shown below.

      {
        "compilerOptions": {
          "paths": {
            "@badeball/cypress-cucumber-preprocessor/*": ["./node_modules/@badeball/cypress-cucumber-preprocessor/dist/bundler-utils/*"]
          }
        }
      }
      

Other changes:

  • Detect erroneous use of async / await and fail fast, relates to #903.

  • More precise snippet suggestions, fixes #974.

  • Report resolved configuration correctly, fixes #951.

  • Visualize hook filters properly, fixes #922.

  • Handle re-runs gracefully, fixes #944.

This version contains some significant changes to the implementation, specifically regarding Cucumber messages. The backend is now more stateful to handle corner cases. However, the backend is also less forgivable than before. Thus, I (the author) expect some issues to arise out of this. If you have found an issue with this version, please open up a ticket.

v16.0.3

03 Apr 13:20
Compare
Choose a tag to compare
  • Update dependency on @badeball/cypress-configuration, fixing an issue where specs in node_modules weren't ignored.

v16.0.2

31 Mar 13:52
Compare
Choose a tag to compare
  • Correct an issue inhibiting users of type: module -projects from using the diagnostics utility (#971).

v16.0.1

29 Mar 17:43
Compare
Choose a tag to compare
  • Correctly set willBeRetried non-retried tests, fixes #977.

v16.0.0

26 Mar 15:42
Compare
Choose a tag to compare
  • Correctly set willBeRetried in messages reports, fixes #849.

  • Replace cucumber-json-formatter with native components, relates to #795, #827, #870, #966 and #967.

    • This removes the need to install cucumber-json-formatter in order to generate JSON reports.

    • This removes the options json.formatter and json.args, which are no longer relevant. With the native components, no child process is spawned.

    • If you previously had configured specPattern to equal **/*.feature (or similar), then you should change it to cypress/e2e/**/*.feature in order to not accidentally include feature files located in node_modules. This will otherwise interfere with the calculation of the common ancestor path and thus step definition resolution.

      • This is no longer necessary as of v16.0.3.
  • Use deterministic, internal IDs, fixes #948 to some degree.

v15.1.5

18 Mar 09:14
Compare
Choose a tag to compare
  • Correctly escape injected values to glob patterns, fixes #946.

v15.1.4

18 Feb 18:24
Compare
Choose a tag to compare
  • Handle rescued test errors without self erroring, fixes #856.

v15.1.3

01 Feb 18:51
Compare
Choose a tag to compare
  • Ensure attachments are correctly added to HTML reports in case of retries, fixes #931.

v15.1.2

19 Jan 16:11
Compare
Choose a tag to compare
  • Limit the size of internal variables contained within the Cypress environment, fixes #908.

v15.1.1

13 Jan 11:57
Compare
Choose a tag to compare
  • Log hooks using log groups as well, fixes #922.