1.11.0 • Published 2 years ago

jest-teamcity v1.11.0

Weekly downloads
13,439
License
MIT
Repository
github
Last release
2 years ago

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

Add this into the jest configuration file:

"reporters": ["default", "jest-teamcity"]

The reporter is enabled only if TEAMCITY_VERSION environment 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"
}

With this configuration, you can run the tests with npm test. If the TEAMCITY_VERSION environment variable is set, it produces the output in TeamCity's format. Otherwise, standard jest output is produced.

License

MIT © Ivan Tereshchenkov

1.11.0

2 years ago

1.10.0

3 years ago

1.9.0

4 years ago

1.8.0

4 years ago

1.7.0

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.0

5 years ago

1.3.0

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago