jest-junit-reporter

A JUnit test report formatter for Jest.

MIT 3 个版本
安装
npm install jest-junit-reporter
yarn add jest-junit-reporter
pnpm add jest-junit-reporter
bun add jest-junit-reporter
README

jest-junit-reporter

A JUnit test reporter for Jest.

Installation

$ npm i -D jest-junit-reporter

Usage

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

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

The reporter will generate a test-results.xml file in the project root. If you need to specify a different location(e.g., for a CI server) then set the environment variable TEST_REPORT_PATH to the desired location. If you need to specify a different file name other than test-results.xml, you can set the environment variable TEST_REPORT_FILENAME to the desired file name.

LICENSE

MIT

版本列表
1.1.0 2017-03-23
1.0.1 2017-01-17
1.0.0 2017-01-16