tap-tc
Formats TAP output for TeamCity.
Maintained fork of tap-teamcity.
Installation
npm i -D tap-tc
Usage
Streaming
const test = require('tape')
const tapTeamCity = require('tap-tc')
test.createStream()
.pipe(tapTeamCity())
.pipe(process.stdout)
CLI
package.json
{
"scripts": {
"test": "tape test/**/*.js | tap-tc"
}
}
Then run with npm test
Terminal
tape test/**/*.js | npx tap-tc
Testing
Clone this project, run npm ci
, then npm t
.
Credits
Originally written by @smockle, but their project is now archived and unmaintained.
Many thanks to @scottcorgan for creating the tap-spec formatter, which inspired this one.