amaechler / jest-teamcity

Jest Teamcity Reporter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jest-teamcity

Build Status Package Verifier

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": {
    "reporters": ["default", "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"

Package.json example:

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

License

MIT © [Ivan Tereshchenkov]

About

Jest Teamcity Reporter

License:MIT License


Languages

Language:JavaScript 100.0%