tap-spec-emoji
v6.1.2
Published
Formatted TAP output like Mocha's spec reporter (Emoji patch)
Downloads
1,127
Readme
Forked from tap-spec
tap-spec (Emoji patch)
Formatted TAP output like Mocha's spec reporter
Patch Motivation
Using a terminal with emoji support, the tests output become pretty ugly. This package use different emojis instead. You may still use the original lib for your CI in case it doesn't support emojis (because it support char fallbacks), but on your local computer this version allow for a better output
Install
npm install tap-spec-emoji --save-dev
Usage
Streaming
var test = require('tape');
var tapSpec = require('tap-spec-emoji');
test.createStream()
.pipe(tapSpec())
.pipe(process.stdout);
CLI
package.json
{
"name": "module-name",
"scripts": {
"test": "node ./test/tap-test.js | tap-spec-emoji"
}
}
Then run with npm test
Terminal
tape test/index.js | node_modules/.bin/tap-spec-emoji
Testling
npm install testling -g
testling test/index.js | node_modules/.bin/tap-spec-emoji