Starter project to write and debug cucumber-js features in TypeScript language for 2E2 tests with puppeteer-core.
- run the command
npm install
.
- run the command
npm test
.
- tag the scenario with
@live
- tag the scenario with
@only
and@debug
- set the breakpoints in the typescript code
- Start debugging
- tag the scenario(s) with
@only
- run the command
npm run test-only
.
- tag the scenario with
@ignore
- run the command
npm run build
.
- run the command
npm run report
.
- add your custom option to the CLI that starts cucumber:
./node_modules/.bin/cucumber-js features/**/*.feature --foo=bar
- use it at runtime:
if (this.cliArgs.foo === 'bar') {
// custom code for option --foo=bar
}
- cutomize the given Custom World Object : custom-world