From 67efd602bcc02caeda1414539ba88105e291f2dc Mon Sep 17 00:00:00 2001 From: Raffi Enficiaud Date: Tue, 11 Feb 2014 11:46:27 +0100 Subject: [PATCH] random order of the tests --- doc/v2/runtime_configuration.qbk | 47 +++++++++++++++++++------------- doc/v2/test.qbk | 1 + 2 files changed, 29 insertions(+), 19 deletions(-) diff --git a/doc/v2/runtime_configuration.qbk b/doc/v2/runtime_configuration.qbk index ef6bc497..2e2282fd 100644 --- a/doc/v2/runtime_configuration.qbk +++ b/doc/v2/runtime_configuration.qbk @@ -131,7 +131,11 @@ acceptable values list. All values are case sensitive and are required to exactl [The level of details carried by the __UTF__ report.] ] - + [/ ###############################################################################################] + [ + [__param_random__] + [Runs the tests in random order] + ] ] [warning There is a link to the Boost.Test debug API, never heard about] @@ -456,6 +460,29 @@ Allows setting the level of details carried by the testing results report genera +[/ ###############################################################################################] +[#ref_param_random][section `random`] + +Runs the tests in random order. + +Positive value makes the framework to run the test cases in random order. Also if this value is greater than 1, +it is used as a random seed. In other case random seed is generated based on current time. + +[h4 Acceptable values] + +* [*0] (default) +* 1 +* integer value > 1 + + +[h4 Environment variable] + + BOOST_TEST_RANDOM + +[endsect] [/random] + + + [Do not] trap floating point exceptions @@ -524,24 +551,6 @@ Allows setting the level of details carried by the testing results report genera - - Random seed for random order of test cases - BOOST_TEST_RANDOM - random - - - 0 - 1 - integer value > 1 - - - - - positive value makes the framework to run the test cases in random order. Also if this value is greater than 1, - it's used as a random seed. In other case random seed is generated based on current time. - - - diff --git a/doc/v2/test.qbk b/doc/v2/test.qbk index e6067144..d98cfdff 100644 --- a/doc/v2/test.qbk +++ b/doc/v2/test.qbk @@ -130,6 +130,7 @@ [def __param_auto_start_dbg__ [link ref_param_auto_dbg `auto_start_dbg`]] [def __param_break_exec_path__ [link ref_param_break_exe_path `break_exec_path`]] [def __param_param_color_output__ [link ref_param_color_output `color_output`]] +[def __param_random__ [link ref_param_random `random`]] [/=============================================================================]