0.0.1 • Published 9 years ago
cucumber-junit-reporter v0.0.1
cucumber-junit-reporter
A support hook generating Jenkins compatible XML based JUnit reports for cucumber-js.
Installation
To install the latest version, run:
npm install cucumber-junit-reporter --save
Usage
Create a file in cucumber's support
directory containing the following:
var reporter = require('cucumber-junit-reporter');
module.exports = reporter({
reportDir: 'build/test_results/'
});
The reporter
accepts the following config values:
reportDir
– The destination directory for the test reports. Default:'test_reports'
.oneReportPerFeature
– Default:true
.- If
true
the reporter will create one report file per cucumber feature. The report file will be named based onreportPrefix
, the feature file name and thereportSuffix
. - If
false
the reporter will create a single report for all features, and the report name will be based onreportFile
.
- If
reportPrefix
– Default:'TEST-'
.reportSuffix
– Default:'.xml'
.reportFile
– Default:'test_results.xml'
.numberSteps
– Iftrue
, each step name in the report will be prefixed by its step number. This is useful when steps are sorter alphabetically. Default:true
.
License
Changelog
0.0.1
- Initial release
0.0.1
9 years ago