Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jest-nunit-reporter

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-nunit-reporter

A NUnit test report formatter for Jest.

  • 1.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9.7K
decreased by-0.88%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status npm

jest-nunit-reporter

A NUnit test reporter for Jest.

Installation

$ npm i -D jest-nunit-reporter

Usage

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

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

For your Continuous Integration you can simply do:

jest --ci --testResultsProcessor="./node_modules/jest-nunit-reporter

The reporter will generate a test-report.xml file in the project root. If you need to specify a different location(e.g., for a CI server) then set the paths in the package.json jestNunitReporter property:

"jestNunitReporter": {
  "outputPath": "reports/",
  "outputFileName": "custom-report.xml",
}

There are other options for naming test suites:

  • testSuiteNamePrefix: Add prefix to test-suites names
  • testSuiteNameFromAncestors: Use ancestors root title (describe)

LICENSE

MIT

Keywords

FAQs

Package last updated on 21 Dec 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc