testcafe-reporter-cucumber-json
Advanced tools
Changelog
[6.0.5] - 2020-07-15
Changelog
[6.0.2] - 2020-07-08
Changelog
[6.0.0] - 2020-07-05
testcafe chrome ./path-to-tests/*(.js|.testcafe|.ts) --reporter cucumber-json --reporter-app-name='My App' --reporter-app-version='x.y.z'
or if you use the runner.reporter
runner.reporter('cucumber-json');
You do not need to specify a filename in the reporter declaration, because the reporter now creates itself all json files.
JSON files are now automatically created in a folder named
cucumber-json-reports
at the root of your project.JSON files are created for each browser and for each test execution, for example:
cucumber-json-reports
|- Chrome_83_0_4103_116_macOS_10_15_5-2020-07-04T19-44-58-493Z.json
|- Firefox_78_0_macOS_10_15-2020-07-04T19-44-58-493Z.json
|- Microsoft_Edge_83_0_478_58_macOS_10_15_5-2020-07-04T19-38-05-688Z.json
|- Microsoft_Edge_83_0_478_58_macOS_10_15_5-2020-07-04T19-44-58-493Z.json
|- Safari_13_1_1_macOS_10_15_5-2020-07-04T19-44-58-493Z.json
|- ...
If you need to change this folder, add this option on the TestCafé command-line:
--reporter-json-folder='my-custom-folder'
You should update the
report-generator.ts
file:
report.generate({
jsonDir: 'cucumber-json-reports',
reportPath: 'cucumber-json-reports/html',
});
Changelog
[4.0.1] - 2020-03-19
Merge pull request #19 from guiyomh/hotfix/user-agent-osx
chore(vulnerability): update minimist dependency