tap: Exit with failure code only if environment variable is set

This commit is contained in:
retropikzel 2026-08-15 09:15:22 +03:00
parent f5fe235c1d
commit 0835e52c53
2 changed files with 11 additions and 5 deletions

View File

@ -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.

View File

@ -1 +1 @@
0.3.1
0.4.0