Skip to content

tgun89/jest-jenkins-reporter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js CI

jest-jenkins-reporter

A plugin that integrates jest test results into Jenkins.

Installation

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

Usage

Configuring package.json

Add jest test result processor, here is jest-jenkins-reporter. If you want to use your self processor, you can replace "jest-jenkins-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

About

A test reporter of jenkins for Jest.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%