This package integrates cucumber and testcafe in one single CLI configurable via profiles.
Also provides a set of generic step-definitions implemented with testcafe.
cd my-project && npm init
npm i cucumber-testcafe --save # install
npx cucumber-testcafe init test # bootstrap
npx cucumber-testcafe run # run
-
Install with npm
npm i --save-dev cucumber-testcafe -
Install with yarn
yarn add -D cucumber-testcafe -
Bootstrap a cucumber-testcafe project
- Creates test folder estructure, with:
- Creates VSCode cucumber settings.
- Creates default
cucumber.profiles.jsonconfig file.
cucumber-testcafe init <folder> # ./test/ as default folder -
Runs cucumber-testcafe project
cucumber-testcafe run CUCUMBER_PROFILE=default # default as defacto profile name to run -
Show help
cucumber-testcafe --help -
Run this repo test
npm test