Skip to content

Commit ff1f41f

Browse files
committed
feat: make the cucumber json report optional, updated docs
1 parent ea24fe8 commit ff1f41f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -298,22 +298,22 @@ and add the following to the cypress-cucumber-preprocessor section in package.js
298298
"cypress-cucumber-preprocessor": {
299299
"cucumberJson": {
300300
"generate": true,
301-
"outputFolder": "cucumber-json",
302-
"filePrefix": "cucumber-",
303-
"fileSuffix": ""
301+
"outputFolder": "cypress/cucumber-json",
302+
"filePrefix": "",
303+
"fileSuffix": ".cucumber"
304304
}
305305
}
306306
```
307307
308308
Here:
309309
310-
outputFolder: The folder to write the files to, defaults to ```./cypress/cucumber-json```
310+
outputFolder: The folder to write the files to, defaults to ```cypress/cucumber-json```
311311
312-
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.
312+
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.
313313
314314
fileSuffix: A suffix to add to each generated filename, defaults to '.cucumber'
315315
316-
generate: Flag, output cucumber.json or not, defaults to true.
316+
generate: Flag, output cucumber.json or not, defaults to false.
317317
318318
319319
## Development

lib/loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = (spec, filePath = this.resourcePath) => {
3131
const cucumberJson =
3232
loaded && loaded.config && loaded.config.cucumberJson
3333
? loaded.config.cucumberJson
34-
: { generate: true };
34+
: { generate: false };
3535

3636
log("compiling", spec);
3737
log("cucumber.json", JSON.stringify(cucumberJson));

0 commit comments

Comments
 (0)