tap-spec
![NPM download count](https://camo.githubusercontent.com/d479cf8e7c2252fc43664491684da06312467c3a6ee489a6ef8e61fcb257cd70/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f646d2f7461702d737065632e7376673f7374796c653d666c61742d737175617265)
Formatted TAP output like Mocha's spec reporter
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