tap-simple
v0.3.1
Published
Simple tap formatter: does not clutter output with successes and shows a diff of actual vs. expected.
Downloads
17
Maintainers
Readme
tap-simple
Simple tap formatter: does not clutter output with successes and shows a diff of actual vs. expected.
Table of Contents generated with DocToc
Install
npm i -g tap-simple
Usage
CLI
tape test/*test.js | tap-simple
Programmatic
import tapSimple from 'tap-simple'
process.stdin
.pipe(tapSimple())
.pipe(process.stdout)
Tap-simple is written in es6. You need to compile it if you're not in an es6 environment.
require('babel/register')
var tapSimple = require('tap-simple')
process.stdin
.pipe(tapSimple())
.pipe(process.stdout)
Tests
Tests are in tape and code coverage is run though covert.
npm test
will run the tests.npm run tdd
will run the tests on every file change.
Developing
To publish, run npm run release -- [{patch,minor,major}]
NOTE: you might need to sudo ln -s /usr/local/bin/node /usr/bin/node
to ensure node is in your path for the git hooks to work
Requirements
- npm > 2.0.0 So that passing args to a npm script will work.
npm i -g npm
- git > 1.8.3 So that
git push --follow-tags
will work.brew install git
License
Artistic 2.0 © Joey Baker
Thanks to tap-spec for the original structure and tap-difflet for the original diffing algorithm.