@cucumber-e2e/gherkin-parallel

0.3.3 • Public • Published

Gherkin Parallel

The module is intended to separate feature files for their further parallelization by protractor or webdriverIO. Existing scenarion and scenario outlines will be splitted into separate feature files in temporarary folder.

Function params

name type mandatority default description
specs Array<string> M glob patterns of specs to split
outDir string M path to temp folder
tagExpression string O tag expression to filter splitted features
lang string O en language of source features
splitScenarioOutlines boolean O true split scenario outlines

return Promise<void>

Splitted features will be placed in temp folder with <featureName>.<timestamp>.feature name (e.g Login.1543659379787.feature)

const compile = require("@cucumber-e2e/gherkin-parallel");

await compile({
    specs: ["./test/scenarioOutline.feature"],
    outDir: "./temp_folder",
    tagExpression: "@scenarioOutlineTag1",
    lang: "en",
    splitScenarioOutlines: true
});

Package Sidebar

Install

npm i @cucumber-e2e/gherkin-parallel

Weekly Downloads

13

Version

0.3.3

License

MIT

Unpacked Size

11.3 kB

Total Files

5

Last publish

Collaborators

  • alexgalichenko