https://github.com/itereshchenkov/jest-teamcity
Jest Teamcity Reporter
https://github.com/itereshchenkov/jest-teamcity
jest jest-teamcity teamcity teamcity-formatter teamcity-reporter testing-tools unit-testing
Last synced: 2 days ago
JSON representation
Jest Teamcity Reporter
- Host: GitHub
- URL: https://github.com/itereshchenkov/jest-teamcity
- Owner: itereshchenkov
- License: mit
- Created: 2016-12-25T02:12:32.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-06-23T22:46:31.000Z (about 1 year ago)
- Last Synced: 2025-05-22T15:06:52.377Z (about 1 month ago)
- Topics: jest, jest-teamcity, teamcity, teamcity-formatter, teamcity-reporter, testing-tools, unit-testing
- Language: JavaScript
- Size: 486 KB
- Stars: 32
- Watchers: 2
- Forks: 13
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# jest-teamcity
[](https://travis-ci.org/itereshchenkov/jest-teamcity)
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:
```javascript
"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:
```bash
export TEAMCITY_VERSION="some_version"
```Package.json example:
```javascript
"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]