Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smockle/tap-teamcity
Formats TAP output for TeamCity.
https://github.com/smockle/tap-teamcity
Last synced: 3 months ago
JSON representation
Formats TAP output for TeamCity.
- Host: GitHub
- URL: https://github.com/smockle/tap-teamcity
- Owner: smockle-archive
- License: isc
- Archived: true
- Created: 2016-02-24T07:01:46.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-19T15:21:27.000Z (almost 7 years ago)
- Last Synced: 2024-07-29T00:56:04.903Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 215 KB
- Stars: 8
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-tap - tap-teamcity - Output for TeamCity. (Reporters / JavaScript)
README
# tap-teamcity
[![npm](https://img.shields.io/npm/v/tap-teamcity.svg)](https://www.npmjs.com/package/tap-teamcity)
[![Build Status](https://travis-ci.org/smockle/tap-teamcity.svg?branch=master)](https://travis-ci.org/smockle/tap-teamcity)
[![Build status](https://ci.appveyor.com/api/projects/status/ms9rme11nk1a5auq?svg=true)](https://ci.appveyor.com/project/smockle/tap-teamcity)
[![codecov](https://codecov.io/gh/smockle/tap-teamcity/branch/master/graph/badge.svg)](https://codecov.io/gh/smockle/tap-teamcity)
[![Known Vulnerabilities](https://snyk.io/test/github/smockle/tap-teamcity/badge.svg)](https://snyk.io/test/github/smockle/tap-teamcity)
[![Greenkeeper badge](https://badges.greenkeeper.io/smockle/tap-teamcity.svg)](https://greenkeeper.io/)Formats [TAP](https://testanything.org/tap-specification.html) output for TeamCity.
## Installation
Run `npm install --save-dev tap-teamcity` to add `tap-teamcity` to your project.
## Usage
### Streaming
```JavaScript
const test = require('tape')
const tapTeamCity = require('tap-teamcity')test.createStream()
.pipe(tapTeamCity())
.pipe(process.stdout)
```### CLI
**package.json**
```JSON
{
"name": "module-name",
"scripts": {
"test": "tape test/**/*.js | tap-teamcity"
}
}
```Then run with `npm test`
**Terminal**
```
tape test/**/*.js | ./node_modules/.bin/tap-teamcity
```## Testing
`tap-teamcity` includes several unit tests. After cloning the `tap-teamcity` repo locally, run `npm install` in the project folder to install dependencies, then `npm test` to execute the tests.
## Credits
Many thanks to @scottcorgan for creating the [tap-spec](https://github.com/scottcorgan/tap-spec) formatter, which inspired this one.