scheme-libraries/retropikzel/tap
retropikzel 4f71f50312 tap: Rewrite so no tests fail because of tap 2026-08-22 10:06:06 +03:00
..
LICENSE
…
README.md tap: Exit with failure code only if environment variable is set 2026-08-15 09:15:22 +03:00
VERSION tap: Rewrite so no tests fail because of tap 2026-08-22 10:06:06 +03:00
test.scm tap: Rewrite so no tests fail because of tap 2026-08-22 10:06:06 +03:00

README.md

Test Anything Protocol output for SRFI-64

Test Anything Protocol

Usage

(import (scheme base)
        (srfi 64)
        (retropikzel tap))

(test-runner-current (tap-runner))

Documentation

(tap-runner)

Get the TAP test runner.

(set-tap-runner-output-port! port)

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.