auth-api/tests/node_modules/tap-spec
2021-06-23 22:30:45 +02:00
..
bin Added some tests 2021-06-23 22:30:45 +02:00
lib/utils Added some tests 2021-06-23 22:30:45 +02:00
test Added some tests 2021-06-23 22:30:45 +02:00
.travis.yml Added some tests 2021-06-23 22:30:45 +02:00
index.js Added some tests 2021-06-23 22:30:45 +02:00
LICENSE Added some tests 2021-06-23 22:30:45 +02:00
package.json Added some tests 2021-06-23 22:30:45 +02:00
README.md Added some tests 2021-06-23 22:30:45 +02:00

tap-spec NPM version NPM download count

Formatted TAP output like Mocha's spec reporter

iterm - 2 bash - may 29 2015 at 10 17 am screen shot

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