Skip to content

Commit a7e1b87

Browse files
committed
updated readme
1 parent 38fe117 commit a7e1b87

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ This Feature clubs the JSON Objects generated by every splitted Feature File and
6363

6464
Say, in your webdriverio's config file, put the following code:
6565

66+
wdio.conf.js
67+
6668
```
6769
const argv = require("yargs").argv;
6870
const 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+
```
9699
exports.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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": {

0 commit comments

Comments
 (0)