cucumber-junit-formatter

0.2.2 • Public • Published

cucumber-junit-formatter

Build Status Coverage Status

Cucumber.js formatter that produced valid junit XML file for Jenkins/GitLab CI/CD and so on.

Based on cucmber-pretty and cucmber-junit. 'pending' or 'undefined' steps will be reported in xml as failures.

Installation

npm install --save-dev cucumber-junit-formatter

Use

cucumber-js -f node_modules/cucumber-junit-formatter[:<output-file>]

Configuration

You can configure formatter via --format-options <JSON-OPTIONS>:

parameter default value Description
scenarioAsStep false If set to true means that feature is an testsuite and scenario is a step in test suite. Default value false (means that scenario is testsuite)
withPackage false If set then formatter add package attribute to testsuite element. Default value false.
propertiesInTestcase false Add <properties...> to <testcase...>. Works only with scenarioAsStep=true

References

Package Sidebar

Install

npm i cucumber-junit-formatter

Weekly Downloads

2,279

Version

0.2.2

License

MIT

Unpacked Size

28.5 kB

Total Files

10

Last publish

Collaborators

  • mvtm