tap-reporter-spec
v1.0.1
Published
Formatted TAP output like Mocha's spec reporter
Downloads
1
Readme
tap-reporter-spec
Formatted TAP output like Mocha's spec reporter
NOTE
Originaly forked from the excellent tap-spec by scottcorgan, but the tap-out parser doesn't work properly with in-script streams, so I switched the TAP parser to tap-parser
** Example **
Install
npm install tap-spec --save-dev
Usage
Streaming
var test = require('tape');
var tapSpec = require('tap-spec');
test.createStream()
.pipe(tapSpec())
.pipe(process.stdout);
CLI
package.json
{
"name": "module-name",
"scripts": {
"test": "node ./test/tap-test.js | tap-spec"
}
}
Then run with npm test
Terminal
tape test/index.js | node_modules/.bin/tap-spec
Testling
npm install testling -g
testling test/index.js | node_modules/.bin/tap-spec