Skip to content

Commit

Permalink
feat: make the cucumber json report optional, updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lgandecki committed Jul 23, 2019
1 parent ea24fe8 commit ff1f41f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,22 +298,22 @@ and add the following to the cypress-cucumber-preprocessor section in package.js
"cypress-cucumber-preprocessor": {
"cucumberJson": {
"generate": true,
"outputFolder": "cucumber-json",
"filePrefix": "cucumber-",
"fileSuffix": ""
"outputFolder": "cypress/cucumber-json",
"filePrefix": "",
"fileSuffix": ".cucumber"
}
}
```
Here:
outputFolder: The folder to write the files to, defaults to ```./cypress/cucumber-json```
outputFolder: The folder to write the files to, defaults to ```cypress/cucumber-json```
filePrefix: A separate json file is generated for each feature based on the name of the feature file. All generated file names will be prefixed with this option if specified.
filePrefix: A separate json file is generated for each feature based on the name of the feature file. All generated file names will be prefixed with this option if specified. Empty string (no prefix) by default.
fileSuffix: A suffix to add to each generated filename, defaults to '.cucumber'
generate: Flag, output cucumber.json or not, defaults to true.
generate: Flag, output cucumber.json or not, defaults to false.
## Development
Expand Down
2 changes: 1 addition & 1 deletion lib/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = (spec, filePath = this.resourcePath) => {
const cucumberJson =
loaded && loaded.config && loaded.config.cucumberJson
? loaded.config.cucumberJson
: { generate: true };
: { generate: false };

log("compiling", spec);
log("cucumber.json", JSON.stringify(cucumberJson));
Expand Down

0 comments on commit ff1f41f

Please sign in to comment.