tree: 7a1ee700bb8571be52f672cff1e74b0029768001 [path history] [tgz]
  1. bin/
  2. lib/
  3. test/
  4. .travis.yml
  5. index.js
  6. LICENSE
  7. package.json
  8. README.md
PoCs/nodejs_poc/node_modules/tap-spec/README.md

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