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 usingnpx currents
instead ofnpx cypress
. Unfortunatelycypress-cucumber-preprocessor
has thecypress
command hardcoded in its code, that's why an additional step is required to "patch"cypress-cucumber-preprocessor
and usecurrents
instead ofcypress
:- the patch is in
patches
directory (it just replacescypress
command withcurrents
) - to apply the patch manually run
npx patch-package
. Read more aboutpatch-package
. - to apply the patch automatically as part of
npm install
add"postinstall": "patch-package"
topackage.json:scripts
- the patch is in
When patched, you can use cypress-tags
command as usual, for example:
Note: get the record key and the project id at https://app.currents.dev