Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @hypnosphi/jest-teamcity with all npm packages installed. Try it out:

var jestTeamcity = require("@hypnosphi/jest-teamcity")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@hypnosphi/jest-teamcity v1.5.0

Teamcity Reporter for Jest Testing framework

jest-teamcity

Build Status

TeamCity Reporter for Jest testing framework which groups tests using TeamCity Test Suites.

Features

  • grouping tests by test suites
  • output tests duration
  • output pending, failed test with message and stack

Install

Install with npm: npm install --save-dev jest-teamcity

Usage

Put this into jest configuration file or package.json

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

The reporter is enabled only if TEAMCITY_VERSION variable is set. It should work in TeamCity by default.

To be able to run the tests with the reporter locally, environment variable should be set:

export TEAMCITY_VERSION="some_version"

To enable TeamCity reporter, use the following option: jest --teamcity

Package.json example:

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

License

MIT © [Ivan Tereshchenkov]

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free