0.0.3 • Published 6 years ago

ddry-tap-spec v0.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

ddry-tap-spec

Formatted TAP output like Mocha's spec reporter

This clone of tap-spec is published to get global access to pending specs formatting feature while corresponding PR on the main project is not yet accepted.

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

Install

npm install ddry-tap-spec --save-dev

Usage

Streaming

var test = require('tape');
var tapSpec = require('ddry-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