The
In brief,
The following section describes the mandatory and optional test suite
functions that
The following functions define the callback interface for a test suite.
MANDATORY
Returns the list of all test cases and test case groups in the
test suite module to be executed. This list also specifies the
order the cases and groups are executed by
If
For details on groups, see section
OPTIONAL
Defines test case groups. For details, see section
OPTIONAL
The test suite information function. Returns a list of tagged tuples specifying various properties related to the execution of this test suite (common for all test cases in the suite).
Tag
Tag
With
Tag
Other tuples than the ones defined are ignored.
For details about the test suite information function, see section
OPTIONAL; if this function is defined, then
This configuration function is called as the first function in the
suite. It typically contains initializations that are common for
all test cases in the suite, and that must only be done
once. Parameter
If
For information on
OPTIONAL; if this function is defined, then
This function is called as the last test case in the
suite. It is meant to be used for cleaning up after
For information on
OPTIONAL
The test case group information function. It is supposed to
return a list of tagged tuples that specify various properties
related to the execution of a test case group (that is, its test
cases and subgroups). Properties set by
Tag
Tag
With
Tag
Other tuples than the ones defined are ignored.
For details about the test case group information function,
see section
OPTIONAL; if this function is defined, then
This configuration function is called before execution of a
test case group. It typically contains initializations that are
common for all test cases and subgroups in the group, and that
must only be performed once.
If
For information about test case groups, see section
OPTIONAL; if this function is defined, then
This function is called after the execution of a test case group
is finished. It is meant to be used for cleaning up after
For details about test case groups, see section
OPTIONAL; if this function is defined,
then
This function is called before each test case. Argument
If
OPTIONAL; if this function is defined,
then
This function is called after each test case, and can be used
to clean up after
For information on
OPTIONAL
The test case information function. It is supposed to
return a list of tagged tuples that specify various properties
related to the execution of this particular test case.
Properties set by
Tag
Tag
If
With
Other tuples than the ones defined are ignored.
For details about the test case information function, see section
MANDATORY
The implementation of a test case. Call the functions to test and
check the result. If something fails, ensure the
function causes a runtime error or call
Elements from the
If you decide not to run the test case after all, return
To print some information in field
If the function returns anything else, the test case is considered successful. The return value always gets printed in the test case log file.
For details about test case implementation, see section
For information on