@zkochan/tap-diff

1.1.1 • Public • Published

@zkochan/tap-diff

NPM version

The most human-friendly TAP reporter.

Screenshot

Screenshot

Installation

This module is installed via npm:

npm install @zkochan/tap-diff --global

How to use

You can use tap-notify in the same way as other TAP reporters.

tape ./*.test.js | tap-diff

Or use with createStream():

'use strict'

const test = require('tape')
const tapDiff = require('tap-diff')

test.createStream()
  .pipe(tapDiff())
  .pipe(process.stdout)

test('timing test', (t) => {
  t.plan(2)
  t.equal(typeof Date.now, 'function')
  var start = Date.now()

  setTimeout(() => {
    t.equal(Date.now() - start, 100)
  }, 100)
})

License

MIT © axross


Dependencies Dependency status for master

  • babel-runtime: babel selfContained runtime
  • chalk: Terminal string styling done right. Much color.
  • core-js: Standard library
  • diff: A javascript text diff implementation.
  • duplexer: Creates a duplex stream
  • figures: Unicode symbols with Windows CMD fallbacks
  • jsondiffpatch: Diff & Patch for Javascript objects
  • pretty-ms: Convert milliseconds to a human readable string: 1337000000 → 15d 11h 23m 20s
  • tap-parser: parse the test anything protocol
  • through2: A tiny wrapper around Node streams2 Transform to avoid explicit subclassing noise

Dev Dependencies devDependency status for master

Package Sidebar

Install

npm i @zkochan/tap-diff

Weekly Downloads

33

Version

1.1.1

License

MIT

Last publish

Collaborators

  • zkochan