test-result-ref

[syntax] test-result-ref runner pname [default]

SRFI-64: returns the value of the test result property named pname. If there is no property named pname, returns default, or #f if default is not specified.

Standard test result properties are:

result-kind

The result kind, as defined in test-result-kind. (test-result-kind runner) is equivalent to (test-result-ref runner 'result-kind).

source-file

The Source file of test suite. (if known)

source-line

The location of test statement (test-assert etc.). (if known)

source-form

The Source form of expression. (if meaningful and known)

expected-value

The expected non-error result. (if meaningful and known)

expected-error

err-type specified in test-error. (if meaningful and known)

actual-value

The actual non-error result. (if meaningful and known)

actual-error

The actual error, if an error was signaled and is known. This values is implementation-dependent.