Skip to content

m59peacemaker/node-tap-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tap-filter

Stream that receives TAP and filters it according to given TAP types.

install

npm install tap-filter

example

# run tests, output only test and plan lines, format with tap-spec
npm test | tap-filter plan test | tap-spec
const filter = require('tap-filter')

someTapStream
  .pipe(filter(['test-fail']))
  .pipe(process.stdout)

types

  • version
  • plan
  • bailout
  • diagnostic
  • test
  • test-pass
  • test-fail

cli

tap-parser [options] [types...]

  Options:

    -h, --help     output usage information
    -r, --reverse  filter out given types

  TAP types:
    version
    plan
    bailout
    diagnostic
    test
    test-pass
    test-fail

API

filter(types = [], reverse = false)

  • types (array)
  • reverse (boolean)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published