Skip to content

ianhomer/cucumber-junit-convert

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Known Vulnerabilities

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

const cucumberJunitConvert = require('cucumber-junit-convert');

const options = {
    inputJsonFile: '<filename>.json',
    outputXmlFile: '<filename>.xml',
    featureNameAsClassName: true // default: false
}

cucumberJunitConvert.convert(options);

License

MIT

Changelog

2.1.1

bugfixing Feature name as the JUnit className

2.1.0

  • add option to use the Feature name as the JUnit className: featureNameAsClassName

2.0.0

  • add embeddings support

1.1.1

1.1.0

  • test cases are marked as skipped when at least one step was pending or skipped, and there was no failure
  • update dependencies

1.0.2

  • fix typo

1.0.1

  • Add classname to testcase

1.0.0

  • Initial release

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%