Home

Awesome

tap-simple NPM version Build Status Dependency Status

Simple tap formatter: does not clutter output with successes and shows a diff of actual vs. expected.

tap-simple

<!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->

Table of Contents generated with DocToc

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

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.

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

License

Artistic 2.0 © Joey Baker

Thanks to tap-spec for the original structure and tap-difflet for the original diffing algorithm.