Sets the correct exit code based on tap output.
Exposes a CLI tool
tap-set-exit, which can be used as follows:
$ cat some-test-output.txt | tap-set-exit
For an always failing test:
// file: fail.jsvar test =
$ browserify fail.js | jsdom-eval | tap-set-exitTAP version 13# always failsnot ok 11..1# tests 1# pass 0# fail 1# ok$ echo $?1
Output from the tap-producing command is passed through unmodified; only the exit code is set.
This project is licensed under the Apache License, Version 2.0. See LICENSE for the full license.