Teamcity Reporter for Jest Unittest Results
JavaScript
Latest commit d12e238 Jan 2, 2017 @winterbe Version 0.3.0
Permalink
Failed to load latest commit information.
docs initial commit Sep 7, 2016
.gitignore initial commit Sep 7, 2016
LICENSE initial commit Sep 7, 2016
README.md Update readme for jest 18 Dec 15, 2016
index.js Support Jest 18 Dec 15, 2016
package.json Version 0.3.0 Jan 2, 2017

README.md

jest-teamcity-reporter

Integrate Jest test results into your Teamcity CI builds

screenshot1

screenshot2

screenshot3

screenshot4

This package will report your JavaScript Jest test results to your Teamcity CI server, so you can see the number of executed tests, test failures and the tests tab right from your Teamcity UI.

Follow on Twitter for Updates

Usage

First, install the package from NPM: npm install --save-dev jest-teamcity-reporter

The reporter integrates with Jest in form of a testResultsProcessor. Put this into your projects package.json:

"jest": {
    "testResultsProcessor": "jest-teamcity-reporter"
}

Since you only want the reporter to work on your Teamcity server and not locally, pass the following option when running Jest from Teamcity:

jest --teamcity

E.g. you can add those scripts to your projects package.json:

"scripts": {
    "test": "jest",
    "test:teamcity": "jest --teamcity"
}

Then, in Teamcity create a new Command Line Build Step and run the following command:

npm run test:teamcity

Use the command npm test on your local machine and Teamcity reporting will be skipped.

License

MIT © Benjamin Winterberg