From f27bd68aa4089c7c17add9cdb90591de932060a6 Mon Sep 17 00:00:00 2001 From: Peter Andersson Date: Sun, 11 Dec 2011 20:42:59 +0100 Subject: Document info functions for init/end_per_suite/group --- lib/common_test/doc/src/write_test_chapter.xml | 37 +++++++++++++++++++++----- 1 file changed, 31 insertions(+), 6 deletions(-) (limited to 'lib') diff --git a/lib/common_test/doc/src/write_test_chapter.xml b/lib/common_test/doc/src/write_test_chapter.xml index 9f2cf73ef2..c0ec26ddcc 100644 --- a/lib/common_test/doc/src/write_test_chapter.xml +++ b/lib/common_test/doc/src/write_test_chapter.xml @@ -369,10 +369,12 @@ Test suite info function

The suite/0 function can be used in a test suite - module to set the default values for the timetrap and - require tags. If a test case info function also specifies - any of these tags, the default value is overruled. See above for - more information. + module to e.g. set a default timetrap value and to + require external configuration data. If a test case-, or + group info function also specifies any of the info tags, it + overrides the default values set by suite/0. See the test + case info function above, and group info function below, for more + details.

Other options that may be specified with the suite info list are:

@@ -711,11 +713,34 @@

The group info properties override those set with the suite info function, and may in turn be overridden by test - case info properties. Please see the suite- and test case info - functions above for a list of valid info properties and more + case info properties. Please see the test case info + function above for a list of valid info properties and more general information.

+
+ Info functions for init- and end-configuration +

It is possible to use info functions also for the init_per_suite, + end_per_suite, init_per_group, and end_per_group + functions, and it works the same way as with info functions + for test cases (see above). This is useful e.g. for setting + timetraps and requiring external configuration data relevant + only for the configuration function in question (without + affecting properties set for groups and test cases in the suite).

+ +

The info function init/end_per_suite() is called for + init/end_per_suite(Config), and info function + init/end_per_group(GroupName) is called for + init/end_per_group(GroupName,Config). Info functions + can not be used with init/end_per_testcase(TestCase, Config), + however, since these configuration functions execute on the test case process + and will use the same properties as the test case (i.e. the properties + set by the test case info function, TestCase()). Please see the test case + info function above for a list of valid info properties and more + general information. +

+
+
Data and Private Directories -- cgit v1.2.3