npm install cucumber-parallel --save-dev
--parallel ::parallelTypes::
parallelTypes: ['scenarios', 'features']
To run Scenarios
in Parallel, pass process.argv --parallel scenarios
$ node_modules/cucumber-parallel/bin/cucumber-parallel /path/to/features -r /path/to/step-defs --parallel scenarios -f json:path/to/file.json
It runs Features
in parallel by default, or by passing --parallel features
process argument
$ node_modules/cucumber-parallel/bin/cucumber-parallel /path/to/features -r /path/to/step-defs -f json:path/to/file.json
Because it runs features/scenarios in parallel, it only supports JSON format. You can save the JSON output to file by passing the cucumber-format as,
-f json:path/to/file.json
Supports all the arguments as cucumber-js, except --format
as explained above
$ node_modules/cucumber-parallel/bin/cucumber-parallel /path/to/features -r /path/to/step-defs -f json:path/to/file.json --tags=@myTag
Run Features or Scenarios in Parallel and generate HTML Reports with cucumber-html-reporter
Cucumber-Parallel is also integrated with HTML reporting Grunt Cucumber module grunt-cucumberjs
Sample HTML Reports:
- Run Features Parallel : LIVE
- Run Scenarios Parallel : LIVE
- Limit number of workers : PENDING