mos-tap-diff
v1.0.0
Published
The most human-friendly TAP reporter
Downloads
74
Readme
@zkochan/tap-diff
The most human-friendly TAP reporter.
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
Dependencies
- 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
- babel-cli: Babel command line.
- babel-plugin-add-module-exports: Fix babel/babel#2212
- babel-plugin-transform-runtime: Externalise references to helpers and builtins, automatically polyfilling your code without polluting globals
- babel-preset-es2015: Babel preset for all es2015 plugins.
- babel-register: babel require hook
- chai: BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
- mocha: simple, flexible, fun test framework
- mos: A pluggable module that injects content into your markdown files via hidden JavaScript snippets