
Security News
NVD Quietly Sweeps 100K+ CVEs Into a “Deferred” Black Hole
NVD now marks all pre-2018 CVEs as "Deferred," signaling it will no longer enrich older vulnerabilities, further eroding trust in its data.
cucumberjs-parallel
Advanced tools
Run cucumber features or scenarios in parallel with limited threads count
Run Cucumber Features or Scenarios in Parallel with limited threads count
npm install cucumberjs-parallel --save-dev
Notes:
--experimental-worker
flag. Details--parallel-type
- either features
or scenarios
-w, --workers
- number of threads. if the value set to 0, the count of threads will equal the number of tasks (features or scenarios)To run Scenarios
in Parallel, pass process.argv --parallel-type scenarios
$ node_modules/cucumberjs-parallel/bin/cucumberjs-parallel /path/to/features -r /path/to/step-defs --parallel-type scenarios -w 4 --format json:path/to/file.json
It runs Features
in parallel by default, or by passing --parallel-type features
process argument
$ node_modules/cucumberjs-parallel/bin/cucumberjs-parallel /path/to/features -r /path/to/step-defs -w 0 --format json:path/to/file.json
Supports all the arguments as cucumber-js, however please be careful with --format
option, the module supports aggregation of json
. the rest of formats might not be working.
$ node_modules/cucumberjs-parallel/bin/cucumberjs-parallel /path/to/features -r /path/to/step-defs -w 2 -f json:path/to/file.json --tags=@myTag
Module supports JSON format. You can save the JSON output to file by passing the cucumber-format as,
-f json:path/to/file.json
Run Features or Scenarios in Parallel and generate Allure Reports with allure-cucumberjs
Create Reporter file:
const { CucumberJSAllureFormatter } = require("allure-cucumberjs");
const { AllureRuntime } = require("allure-cucumberjs");
function Reporter(options) {
return new CucumberJSAllureFormatter(
options,
new AllureRuntime({ resultsDir: "./allure-results" }),
{}
);
}
Reporter.prototype = Object.create(CucumberJSAllureFormatter.prototype);
Reporter.prototype.constructor = Reporter;
exports.default = Reporter;
Then pass with reporter as a Cucumber formatter:
--format ./path/to/Reporter.js
e.g.
node_modules/cucumberjs-parallel/bin/cucumberjs-parallel test/features --parallel-type features -w 2 -f allure/Reporter.js
FAQs
Run cucumber features or scenarios in parallel with limited threads count
The npm package cucumberjs-parallel receives a total of 231 weekly downloads. As such, cucumberjs-parallel popularity was classified as not popular.
We found that cucumberjs-parallel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NVD now marks all pre-2018 CVEs as "Deferred," signaling it will no longer enrich older vulnerabilities, further eroding trust in its data.
Research
Security News
Lazarus-linked threat actors expand their npm malware campaign with new RAT loaders, hex obfuscation, and over 5,600 downloads across 11 packages.
Security News
Safari 18.4 adds support for Iterator Helpers and two other TC39 JavaScript features, bringing full cross-browser coverage to key parts of the ECMAScript spec.