@hypnosphi/jest-teamcity

1.5.0 • Public • Published

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]

Dependents (0)

Package Sidebar

Install

npm i @hypnosphi/jest-teamcity

Weekly Downloads

0

Version

1.5.0

License

MIT

Unpacked Size

194 kB

Total Files

17

Last publish

Collaborators

  • hypnosphi