[boost] [boost.test] feature request - random order of testing
by Pavel Vozenilek other posts by this author
May 22 2004 7:01PM messages near this date
[boost] Re: Re: Re: [Boost.Test] New testing procedure?
|
[boost] Re: [boost.test] feature request - random order of testing
Would it be possible to add ability to execute tests in random order,
instead of as they are added into suite?
Example:
test_suite* init_unit_test_suite(int argc, char * argv[]) {
test_suite* tests = BOOST_TEST_SUITE("...");
tests-> add(BOOST_TEST_CASE(&test1));
tests-> add(BOOST_TEST_CASE(&test2));
return tests;
}
Here test1() will be always executed before test2(). This behaviour may hide
errors.
It would be nice to have:
- possibility to say: now execute test in random order,
- if error happens framework would print out seed for random,
- ability set seed manualy is needed to be able to repeat problem.
(If such feature is already present in library my weak reading skills didn't
spot it.)
/Pavel
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thread:
Pavel Vozenilek
Pavel Vozenilek
David Abrahams
Gennadiy Rozental
Gennadiy Rozental
|