Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 1.22 KB

File metadata and controls

14 lines (10 loc) · 1.22 KB

Cypress + cypress-cucumber-preprocessor + Currents

Example of using cypress-cucumber-preprocessor with Currents.

  • Use @currents/cli package to use Currents.dev as an alternative dashboard for ochestrating and reporting of cypress tests.
  • Using @currents/cli allows using npx currents instead of npx cypress. Unfortunately cypress-cucumber-preprocessor has the cypress command hardcoded in its code, that's why an additional step is required to "patch" cypress-cucumber-preprocessor and use currents instead of cypress:
    • the patch is in patches directory (it just replaces cypress command with currents)
    • to apply the patch manually run npx patch-package. Read more about patch-package.
    • to apply the patch automatically as part of npm install add "postinstall": "patch-package" to package.json:scripts

When patched, you can use cypress-tags command as usual, for example: currents-2024-03-15-11 53 54@2x

Note: get the record key and the project id at https://app.currents.dev