/tap-tc

tap-teamcity fork

Primary LanguageJavaScriptMIT LicenseMIT

tap-tc

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.

Donate

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.