cucumber-testcafe
v0.1.0
Published
cucumber with testcafe integration
Downloads
37
Readme
cucumber-testcafe
This package integrates cucumber and testcafe in one single CLI configurable via profiles.
Also provides a set of generic step-definitions implemented with testcafe.
Requisites
Super fast quick start
cd my-project && npm init
npm i cucumber-testcafe --save # install
npx cucumber-testcafe init test # bootstrap
npx cucumber-testcafe run # run
Quick start
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.json
config 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
More info
- https://devexpress.github.io/testcafe/documentation/test-api/selecting-page-elements/selectors/
- https://cucumber.io/docs/cucumber/cucumber-expressions/
- https://cucumber.io/docs/gherkin/