Formats TAP output for TeamCity.
Maintained fork of tap-teamcity.
npm i -D tap-tc
const test = require('tape')
const tapTeamCity = require('tap-tc')
test.createStream()
.pipe(tapTeamCity())
.pipe(process.stdout)
package.json
{
"scripts": {
"test": "tape test/**/*.js | tap-tc"
}
}
Then run with npm test
Terminal
tape test/**/*.js | npx tap-tc
Clone this project, run npm ci
, then npm t
.
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.