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

jest-teamcity-reporter

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-teamcity-reporter

Teamcity Reporter for Jest Test Results

  • 0.9.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
71K
increased by9.2%
Maintainers
1
Weekly downloads
 
Created
Source

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.


★★★ Like this project? Leave a star, follow on Twitter or donate to support my work! Thanks. ★★★

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

The reporter is only active when the environment variable TEAMCITY_VERSION is present which should be the case for most common Teamcity server installations. So on your local machine the reporter should be disabled by default. You can test the reporter by temporarily setting the environment variable:

export TEAMCITY_VERSION="your_version"

Then, just use Jest as usual, e.g. put this in your package.json

"scripts": {
    "test": "jest"
}

Then, simply run npm test locally and from Teamcity.

Versions < 0.5.0 also supported activation via cli option --teamcity but Jest no longer supports custom options, so this option is no longer available.

License

MIT © Benjamin Winterberg

Keywords

FAQs

Package last updated on 19 Jan 2018

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