Tapout
Streaming Tap (Test Anywhere Protocol) output
Install:
$ npm i tapout
Give write spec objects to tapout and get streaming tap output.
A successful test object with two assertions:
var TapOut = var tap = tap tap tap
output:
$ node my-test.jsTAP version 13# my first test ok 1 assert was correctok 2 assert was true 1..2# tests 2 # pass 2 # ok
var TapOut = var tap = tap tap
output:
$ node my-failing-test.jsTAP version 13# my only failing test not ok 1 assert was correct --- file: my-file.js line: 20 column: 10 stack: - repl:7:10 - REPLServer.defaultEval - bound - REPLServer.runBound [as eval] - REPLServer.<anonymous> - REPLServer.EventEmitter.emit - REPLServer.Interface._onLine - REPLServer.Interface._line - REPLServer.Interface._ttyWrite - ReadStream.onkeypress ... 1..1# tests 1 # fail 1 # not ok