tap-form-synopsis

1.0.2 • Public • Published

tap-form-synopsis

Receives streaming TAP and emits a synopsis object when it ends.

install

npm install tap-form-synopsis

example

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: number ms time tests started
    • end: number ms time tests ended
    • total: number ms total time
  • tests: number amount of assertions
  • passed: [] passing tests
  • failed: [] failing tests

Package Sidebar

Install

npm i tap-form-synopsis

Weekly Downloads

3

Version

1.0.2

License

CC0-1.0

Last publish

Collaborators

  • m59