Skip to content

Releases: badeball/cypress-cucumber-preprocessor

v18.0.4

10 Aug 08:49

Choose a tag to compare

  • Update dependency on esbuild, fixes #1068.

v18.0.3

06 Aug 17:14

Choose a tag to compare

  • Allow (testing) type-specific configuration of stepDefinitions, fixes #1065.

v18.0.2

28 Jul 12:32

Choose a tag to compare

  • Add support for skipped steps, fixes #1053.

  • Handle use of this.skip() correctly in reports, fixes #1054.

  • Export type member IPreprocessorConfiguration, fixes / supersedes #1057.

  • Fix asynchronous scheduling of nested step, fixes #1063.

v18.0.1

15 Jun 07:52

Choose a tag to compare

  • Give each TestStep (from @cucumber/messages) a unique ID, fixes #1034.

v18.0.0

12 Jun 14:46

Choose a tag to compare

Breaking changes:

  • TypeScript users that have previously been unable to upgrade moduleResolution to node16, and use the paths property as a workaround, must update their paths.

    From this

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

    To this

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

Other changes:

v17.2.1

02 Jun 19:26

Choose a tag to compare

  • Step hooks are logged using separate log groups, similar to how scenario hooks are logged.

  • Properly escape error messages in interactive mode.

  • Fix error in non-feature specs under certain conditions, fixes #1028.

  • Allow doesFeatureMatch to be called in support files, fixes #1025.

v17.2.0

25 May 19:20

Choose a tag to compare

  • Add BeforeStep and AfterStep hooks, fixes #847.

  • Report failing steps with correct duration, fixes #963.

v17.1.1

18 May 12:51

Choose a tag to compare

  • Allow generation of JSON reports with hooks (After / Before) even if baseUrl is undefined, fixes #1017.

  • Correctly filter test cases in HTML reports when using omitFiltered, fixes #1018.

v17.1.0

10 May 13:02

Choose a tag to compare

  • Add support for (testing) type-specific configuration, fixes #700.

  • Add support for component testing using Vite as bundler, fixes #698.

  • Output data tables in command log, fixes #782 (by @nilgaar).

v17.0.0

01 May 15:14

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.