Simple tap formatter: does not clutter output with successes and shows a diff of actual vs. expected.
Table of Contents generated with DocToc
npm i -g tap-simpletape test/*test.js | tap-simpleimport 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 are in tape and code coverage is run though covert.
npm testwill run the tests.npm run tddwill run the tests on every file change.
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
- 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-tagswill work.brew install git
Artistic 2.0 © Joey Baker
Thanks to tap-spec for the original structure and tap-difflet for the original diffing algorithm.