JSPM

cucumber-junit-reporter

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 652
  • Score
    100M100P100Q112979F
  • License MIT

A Jenkins compatible JUnit reporter for cucumber-js

Package Exports

  • cucumber-junit-reporter

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cucumber-junit-reporter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

cucumber-junit-reporter

Build Status Dependency Status devDependency Status

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 on reportPrefix, the feature file name and the reportSuffix.
    • If false the reporter will create a single report for all features, and the report name will be based on reportFile.
  • reportPrefix – Default: 'TEST-'.
  • reportSuffix – Default: '.xml'.
  • reportFile – Default: 'test_results.xml'.
  • numberSteps – If true, each step name in the report will be prefixed by its step number. This is useful when steps are sorter alphabetically. Default: true.

License

MIT

Changelog

0.0.1

  • Initial release