For Gauche 0.9.11Search (procedure/syntax/module):

Next: , Previous: , Up: Library modules - SRFIs   [Contents][Index]

11.14 srfi-64 - A Scheme API for test suites

Module: srfi-64

This module defines API to write a portable test suite. In Gauche, it is adapted to work with gauche.test native test framework (see Unit testing).

If srfi-64 tests are run with the default runner during gauche.test is active, the tests becomes a part of the whole gauche.test suite.

The recommended way is to write a test suite in pure srfi-64, then include it from the gauche test script:

(use gauche.test)
(test-start "the tests")
;; portable test
(include "test-suite-in-srfi-64")

;; gauche-specific test, if needed
...

(test-end)

If test-suite-in-srfi-64.scm is run by itself, it uses srfi-64’s default reporting system. If it is run within gauche.test script, the results are reported via gauche.test, consolidated with other Gauche test results.


Next: , Previous: , Up: A Scheme API for test suites   [Contents][Index]

11.14.1 Test API


Previous: , Up: A Scheme API for test suites   [Contents][Index]

11.14.2 Test runner


Previous: , Up: A Scheme API for test suites   [Contents][Index]


For Gauche 0.9.11Search (procedure/syntax/module):