File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,8 @@ This Feature clubs the JSON Objects generated by every splitted Feature File and
6363
6464Say, in your webdriverio's config file, put the following code:
6565
66+ wdio.conf.js
67+
6668```
6769const argv = require("yargs").argv;
6870const wdioParallel = require('wdio-cucumber-parallel-execution');
@@ -77,7 +79,7 @@ let featureFilePath = `${sourceSpecDirectory}/*.feature`;
7779
7880// If parallel execution is set to true, then create the Split the feature files
7981// And store then in a tmp spec directory (created inside `the source spec directory)
80- if (argv.parallel) {
82+ if (argv.parallel === 'true' ) {
8183 tmpSpecDirectory = `${sourceSpecDirectory}/tmp`;
8284 wdioParallel.performSetup({
8385 sourceSpecDirectory: sourceSpecDirectory,
@@ -91,8 +93,9 @@ if (argv.parallel) {
9193
9294### Get Consolidated JSON Report Array
9395
94- ```
96+ wdio.conf.js
9597
98+ ```
9699exports.config = {
97100 // Runner Configuration
98101
@@ -145,6 +148,16 @@ exports.config = {
145148
146149```
147150
151+ ### Pass parallel execution Flag as true
152+
153+ package.json
154+ ```
155+ "scripts": {
156+ "test": "command to run your tests with --parallel=true"
157+ }
158+
159+ ```
160+
148161
149162# License
150163
Original file line number Diff line number Diff line change 11{
22 "name" : " wdio-cucumber-parallel-execution" ,
3- "version" : " 3.6.11 " ,
3+ "version" : " 3.6.12 " ,
44 "description" : " WebdriverIO Package to execute Cucumber scenarios in parallel" ,
55 "main" : " index.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments