Socket
Socket
Sign inDemoInstall

jest-jenkins-reporter

Package Overview
Dependencies
517
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    jest-jenkins-reporter

A test reporter of jenkins for Jest.


Version published
Weekly downloads
2.5K
decreased by-7.45%
Maintainers
1
Install size
36.0 MB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 23 Apr 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc