cucumber-junit-convert
Version:
<a href="https://snyk.io/test/github/znevrly/cucumber-junit-convert"><img src="https://snyk.io/test/github/znevrly/cucumber-junit-convert/badge.svg" alt="Known Vulnerabilities" data-canonical-src="https://snyk.io/test/github/znevrly/cucumber-junit-convert
60 lines (39 loc) • 1.43 kB
Markdown
<a href="https://snyk.io/test/github/znevrly/cucumber-junit-convert"><img src="https://snyk.io/test/github/znevrly/cucumber-junit-convert/badge.svg" alt="Known Vulnerabilities" data-canonical-src="https://snyk.io/test/github/znevrly/cucumber-junit-convert" style="max-width:100%;"></a>
Convert Cucumber.js json result file to XML Junit format. Unlike many similar libraries keeps Scenario = Testcase, not Step = Testcase.
Installation
------------
To install the latest version, run:
npm install cucumber-junit-convert --save
Usage
-----
```JavaScript
const cucumberJunitConvert = require('cucumber-junit-convert');
const options = {
inputJsonFile: '<filename>.json',
outputXmlFile: '<filename>.xml',
featureNameAsClassName: true // default: false
}
cucumberJunitConvert.convert(options);
```
License
-------
[](LICENSE)
Changelog
---------
bugfixing Feature name as the JUnit className
- add option to use the Feature name as the JUnit className: `featureNameAsClassName`
- add embeddings support
- fixed https://github.com/znevrly/cucumber-junit-convert/issues/5
- test cases are marked as skipped when at least one step was pending or skipped, and there was no failure
- update dependencies
- fix typo
- Add classname to testcase
- Initial release