Stream that receives TAP and filters it according to given TAP types.
npm install tap-filter
# 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)
- version
- plan
- bailout
- diagnostic
- test
- test-pass
- test-fail
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
types
(array)reverse
(boolean)