1.0.2 • Published 6 years ago

jest-jenkins-reporter v1.0.2

Weekly downloads
2,615
License
MIT
Repository
github
Last release
6 years ago

jest-jenkins-reporter

A plugin that integrates jest test results into Jenkins.

Installation

$ npm install --save jest-jenkins-reporter
or
$ yarn add jest-jenkins-reporter --dev

Usage

Configuring package.json

Add jest test result processor, here is jest-jerkins-reporter. If you want to use your self processor, you can replace "jest-jerkins-reporter".

"jest": {
    ...
    ...
    "testResultsProcessor": "jest-jenkins-reporter"
  }

Reporter file config:

"jestSonar": {
    "reportPath": "reports",
    "reportFile": "report.xml",
    "indent": 4
  }
  
  • reportPath: Report file generation path.
  • reportFile: Report file name.
  • indent: XML file indentation space number.

Test script:

"test-jenkins": "NODE_ENV=test jest --colors"

License

MIT

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago