<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
Convert Cucumber.js json result file to XML Junit format. Unlike many similar libraries keeps Scenario = Testcase, not Step = Testcase.
To install the latest version, run:
npm install cucumber-junit-convert --save
const cucumberJunitConvert = require('cucumber-junit-convert');
const options = {
inputJsonFile: '<filename>.json',
outputXmlFile: '<filename>.xml',
featureNameAsClassName: true, // default: false
failOnUndefinedStep: false // default: false
}
cucumberJunitConvert.convert(options);
bugfixing Feature name as the JUnit className
featureNameAsClassName