Skip to content

Provide a cucumber-js support file and json2xml converter to generate JUnitXML file for CI

License

Notifications You must be signed in to change notification settings

erlikh/cucumberjs-junitxml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cucumberjs-junitxml

Provide a cucumber-js support file and json2xml converter to generate JUnitXML file for CI

Install

  1. Copy reporter/reporter.js to your cucumber support folder

  2. Cucumberjs-junitxml should be added to your test codebase as a dev dependency. You can do this with:

$ npm install cucumberjs-junitxml --save-dev 

Alternatively you can manually add it to your package.json file:

{
  "devDependencies" : {
    "cucumberjs-junitxml": "latest"
  }
}

then install with:

$ npm install --dev

Run

Run your cucumber-js command. The reports should be saved to tests/features/output/

$ ./node_modules/.bin/cucumber.js

And you can manually convert your json to xml by

$ cat cucumber_report.json | ./node_modules/.bin/cucumber-junit > cucumber_report.xml

License

MIT

About

Provide a cucumber-js support file and json2xml converter to generate JUnitXML file for CI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published