1.2.0 • Published 2 years ago

@digitalroute/jest-jenkins-reporter v1.2.0

Weekly downloads
586
License
MIT
Repository
-
Last release
2 years ago

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".

// package.json
"jest": {
    // ...
    "testResultsProcessor": "@digitalroute/jest-jenkins-reporter"
}

Reporter file config:

// package.json
"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.2.0

2 years ago

1.1.2

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago