Skip to content

mayank23/jest-junit-reporter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jest-junit-reporter

A JUnit test reporter for Jest.

Installation

$ npm i -D jest-junit-reporter

Usage

In your package.json file include a "jest" config section and specify the "testResultsProcessor":

{
  "jest": {
    "testResultsProcessor": "./node_modules/jest-junit-reporter"
  }
}

The reporter will generate a test-results.xml file in the project root. If you need to specify a different location(e.g., for a CI server) then set the environment variable TEST_REPORT_PATH to the desired location.

LICENSE

MIT

About

A JUnit test reporter for Jest.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%