1.0.2 • Published 8 years ago
tap-form-synopsis v1.0.2
tap-form-synopsis
Receives streaming TAP and emits a synopsis object when it ends.
install
npm install tap-form-synopsisexample
const formSynopsis = require('tap-form-synopsis')
runTests() // streaming TAP
.pipe(formSynopsis())
.pipe(through((synopsis, enc, cb) => {
// use synopsis for output
this.push(`total: ${synopsis.tests}\n`)
cb()
}))synopsis
- time: {
- start:
numberms time tests started - end:
numberms time tests ended - total:
numberms total time
- start:
- tests:
numberamount of assertions - passed:
[]passing tests - failed:
[]failing tests