0.0.11 • Published 3 years ago

@sa0001/tap-teamcity v0.0.11

Weekly downloads
11
License
MIT
Repository
github
Last release
3 years ago

@sa0001/tap-teamcity

NPM

This module converts the TAP-format output of running tap, to the Junit-format expected by Teamcity.

Install

npm install @sa0001/tap-teamcity

Usage

It can be run from the command line, in which case it reads from stdin and writes to stdout:

./node_modules/.bin/tap ./test.js > ./test-results.tap
cat ./test-results.tap | node ./node_modules/tap-teamcity/dist/index.js > ./test-results.xml

Or it can be used as a module, in which case there are a few more options available:

const tapTeamcity = require('@sa0001/tap-teamcity')

await tapTeamcity('./test-results.tap', './test-results.xml', {
	// custom top-level suite name
	suiteName: 'TAP',
	// edit the full name of the test, for example to shorten or remove the file path
	editTestName: (name) => { return name },
	// filter the lines of the error stack, to remove noise
	filterErrorStack: (line) => { return true },
})

License

MIT

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago