Dabscm Library Reference

(srfi 64)

SRFI-64 — A Scheme API for test suites

Overview

SRFI-64 is a Scheme API for test suites: bracket tests with test-begin / test-end, assert with test-equal / test-assert / test-error, group with test-group, and plug in test runners. This project's (scm test) wraps it with a summary-reporting runner — import that for the usual workflow.

Common uses

(import (srfi 64))

(test-begin "arithmetic")
(test-equal 4 (+ 2 2))          ;; (test-equal expected actual)
(test-assert (> 3 2))
(test-error (vector-ref #(1) 5))
(test-end "arithmetic")

test-group, test-eqv/test-eq, test-approximate, and test-skip / test-expect-fail round out the API, along with the test-runner-* machinery for custom reporting.

72 bindings

test-apply
(no documentation)
test-approximate
(no documentation)
test-assert
(no documentation)
test-begin
(no documentation)
test-end
(no documentation)
test-eq
(no documentation)
test-equal
(no documentation)
test-eqv
(no documentation)
test-error
(no documentation)
test-expect-fail
(no documentation)
test-group
(no documentation)
test-group-with-cleanup
(no documentation)
test-log-to-file
(no documentation)
test-match-all
(no documentation)
test-match-any
(no documentation)
test-match-name
(no documentation)
test-match-nth
(no documentation)
test-on-bad-count-simple
(no documentation)
test-on-bad-end-name-simple
(no documentation)
test-on-final-simple
(no documentation)
test-on-group-begin-simple
(no documentation)
test-on-group-end-simple
(no documentation)
test-on-test-end-simple
(no documentation)
test-passed?
(no documentation)
test-read-eval-string
(no documentation)
test-result-alist
(no documentation)
test-result-alist!
(no documentation)
test-result-clear
(no documentation)
test-result-kind
(no documentation)
test-result-ref
(no documentation)
test-result-remove
(no documentation)
test-result-set!
(no documentation)
test-runner-aux-value
(no documentation)
test-runner-aux-value!
(no documentation)
test-runner-create
(no documentation)
test-runner-current
(no documentation)
test-runner-factory
(no documentation)
test-runner-fail-count
(no documentation)
test-runner-fail-count!
(no documentation)
test-runner-get
(no documentation)
test-runner-group-path
(no documentation)
test-runner-group-stack
(no documentation)
test-runner-group-stack!
(no documentation)
test-runner-null
(no documentation)
test-runner-on-bad-count
(no documentation)
test-runner-on-bad-count!
(no documentation)
test-runner-on-bad-end-name
(no documentation)
test-runner-on-bad-end-name!
(no documentation)
test-runner-on-final
(no documentation)
test-runner-on-final!
(no documentation)
test-runner-on-group-begin
(no documentation)
test-runner-on-group-begin!
(no documentation)
test-runner-on-group-end
(no documentation)
test-runner-on-group-end!
(no documentation)
test-runner-on-test-begin
(no documentation)
test-runner-on-test-begin!
(no documentation)
test-runner-on-test-end
(no documentation)
test-runner-on-test-end!
(no documentation)
test-runner-pass-count
(no documentation)
test-runner-pass-count!
(no documentation)
test-runner-reset
(no documentation)
test-runner-simple
(no documentation)
test-runner-skip-count
(no documentation)
test-runner-skip-count!
(no documentation)
test-runner-test-name
(no documentation)
test-runner-xfail-count
(no documentation)
test-runner-xfail-count!
(no documentation)
test-runner-xpass-count
(no documentation)
test-runner-xpass-count!
(no documentation)
test-runner?
(no documentation)
test-skip
(no documentation)
test-with-runner
(no documentation)