tap: Exit with failure code only if environment variable is set
This commit is contained in:
parent
f5fe235c1d
commit
0835e52c53
|
|
@ -1,9 +1,8 @@
|
|||
TAP output for SRFI-64
|
||||
Test Anything Protocol output for SRFI-64
|
||||
|
||||
[Test Anything Protocol](https://testanything.org/)
|
||||
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
(import (scheme base)
|
||||
|
|
@ -13,8 +12,7 @@ TAP output for SRFI-64
|
|||
(test-runner-current (tap-runner))
|
||||
|
||||
|
||||
|
||||
## Reference
|
||||
## Documentation
|
||||
|
||||
(**tap-runner**)
|
||||
|
||||
|
|
@ -27,3 +25,11 @@ Set the output port of the test runner. To output to file you can do:
|
|||
(define tap-file "tap-result.txt")
|
||||
(when (file-exists? tap-file) (delete-file tap-file))
|
||||
(set-tap-runner-output-port! (open-output-file tap-file))
|
||||
|
||||
|
||||
### Environment variables
|
||||
|
||||
**SCM_TAP_EXIT_FAIL**
|
||||
|
||||
If you want the test runner to exit on end with fail (1) if any of the tests
|
||||
fail, set this environment variable.
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
0.3.1
|
||||
0.4.0
|
||||
|
|
|
|||
Loading…
Reference in New Issue