0.2.2 • Published 4 years ago

cucumber-junit-formatter v0.2.2

Weekly downloads
8,831
License
MIT
Repository
github
Last release
4 years ago

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>:

parameterdefault valueDescription
scenarioAsStepfalseIf 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)
withPackagefalseIf set then formatter add package attribute to testsuite element. Default value false.
propertiesInTestcasefalseAdd <properties...> to <testcase...>. Works only with scenarioAsStep=true

References

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago