Deprecated. From npm stats it looks like there are a few people using this, but I haven't used TeamCity in years and hopefully never will again, so if you need this, please feel free to fork it.
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.