File tree 2 files changed +16
-3
lines changed
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
63
63
64
64
Say, in your webdriverio's config file, put the following code:
65
65
66
+ wdio.conf.js
67
+
66
68
```
67
69
const argv = require("yargs").argv;
68
70
const wdioParallel = require('wdio-cucumber-parallel-execution');
@@ -77,7 +79,7 @@ let featureFilePath = `${sourceSpecDirectory}/*.feature`;
77
79
78
80
// If parallel execution is set to true, then create the Split the feature files
79
81
// And store then in a tmp spec directory (created inside `the source spec directory)
80
- if (argv.parallel) {
82
+ if (argv.parallel === 'true' ) {
81
83
tmpSpecDirectory = `${sourceSpecDirectory}/tmp`;
82
84
wdioParallel.performSetup({
83
85
sourceSpecDirectory: sourceSpecDirectory,
@@ -91,8 +93,9 @@ if (argv.parallel) {
91
93
92
94
### Get Consolidated JSON Report Array
93
95
94
- ```
96
+ wdio.conf.js
95
97
98
+ ```
96
99
exports.config = {
97
100
// Runner Configuration
98
101
@@ -145,6 +148,16 @@ exports.config = {
145
148
146
149
```
147
150
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
+
148
161
149
162
# License
150
163
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " wdio-cucumber-parallel-execution" ,
3
- "version" : " 3.6.11 " ,
3
+ "version" : " 3.6.12 " ,
4
4
"description" : " WebdriverIO Package to execute Cucumber scenarios in parallel" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments