From 68d7535fe0cccd50622884f704edeb9d8bb47430 Mon Sep 17 00:00:00 2001
From: tmanevik The Common Test framework is an environment for
+ The
In brief, Common Test supports:
+In brief,
The following sections describe the mandatory and optional test suite
- functions Common Test will call during test execution. For more details
- see
The following section describes the mandatory and optional test suite
+ functions that
The following functions define the callback interface for a test suite.
MANDATORY
- -This function must return the list of all test cases and test - case groups in the test suite module that are to be executed. - This list also specifies the order the cases and groups will - be executed by Common Test. A test case is represented by an atom, +
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
-
If
For details on groups, see section
+
OPTIONAL
- -Function for defining test case groups. Please see
-
OPTIONAL
+ +Defines test case groups. For details, see section
+
OPTIONAL
- -This is the test suite info function. It is supposed to - return a list of tagged tuples that specify various properties - related to the execution of this test suite (common for all - test cases in the suite).
- -The
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
The
Tag
With
With
The
Tag
Other tuples than the ones defined will simply be ignored.
+ to be run with this suite. -For more information about the test suite info function,
- see
Other tuples than the ones defined are ignored.
+ +For details about the test suite information function, see section
+
OPTIONAL
- + +OPTIONAL
+This configuration function is called as the first function in the
- suite. It typically contains initializations which are common for
- all test cases in the suite, and which shall only be done
- once. The
For information on
If
For information on
OPTIONAL
+OPTIONAL
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
- -This is the test case group info function. It is supposed to
+ 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 (i.e. its test cases
- and sub-groups). Properties set by
+ related to the execution of a test case group (that is, its test
+ cases and subgroups). Properties set by
The Tag
The
Tag
With
With
The
Tag
Other tuples than the ones defined will simply be ignored.
+ to be run with this suite. -For more information about the test case group info function,
- see
Other tuples than the ones defined are ignored.
+ +For details about the test case group information function,
+ see section
OPTIONAL
- + +OPTIONAL
+This configuration function is called before execution of a
- test case group. It typically contains initializations which are
- common for all test cases and sub-groups in the group, and which
- shall only be performed once.
For information about test case groups, please see
-
If
For information about test case groups, see section
+
OPTIONAL
- -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 more information about test case groups, please see
-
OPTIONAL
+ +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
- -This function is called before each test case. The
-
This function is called before each test case. Argument
+
If
OPTIONAL
- - This function is called after each test case, and can be used
- to clean up after
OPTIONAL
+ +This function is called after each test case, and can be used
+ to clean up after
+
For information on
OPTIONAL
- -This is the test case info function. It is supposed to + +
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
The
Tag
The
Tag
If
With
Other tuples than the ones defined will simply be ignored.
+ configuration files, the test case is skipped. For details about + theIf
With
Other tuples than the ones defined are ignored.
-For more information about the test case info function,
- see
For details about the test case information function, see section
+
MANDATORY
- -This is the implementation of a test case. Here you must
- call the functions you want to test, and do whatever you
- need to check the result. If something fails, make sure the
- function causes a runtime error, or call
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
You can return
You can return
If the function returns anything else, the test case is - considered successful. (The return value always gets printed - in the test case log file).
+Elements from the
If you decide not to run the test case after all, return
+
To print some information in field
For more information about test case implementation, please
- see
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 information on
For details about test case implementation, see section
+
For information on