Skip to content

Commit 58caad3

Browse files
update parallel docs about printing to stdout (#1052)
1 parent ea386c5 commit 58caad3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/cli.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ You can run your scenarios in parallel with `--parallel <NUMBER_OF_SLAVES>`. Eac
103103
* `CUCUMBER_TOTAL_SLAVES` - set to the number of slaves
104104
* `CUCUMBER_SLAVE_ID` - id for slave ('0', '1', '2', etc)
105105

106+
**Note**: Printing to `stdout` (using `console.log` or other means) will cause an error, because the slave processes communicate with the master process over `stdout`. Instead print to `stderr` (using `console.error` or other means).
107+
106108
## Profiles
107109

108110
In order to store and reuse commonly used CLI options, you can add a `cucumber.js` file to your project root directory. The file should export an object where the key is the profile name and the value is a string of CLI options. The profile can be applied with `-p <NAME>` or `--profile <NAME>`. This will prepend the profile's CLI options to the ones provided by the command line. Multiple profiles can be specified at a time. If no profile is specified and a profile named `default` exists, it will be applied.

0 commit comments

Comments
 (0)