Opened 11 years ago
Closed 11 years ago
#5973 closed Feature Requests (wontfix)
Support program option to repeat tests
Reported by: | Owned by: | Gennadiy Rozental | |
---|---|---|---|
Milestone: | To Be Determined | Component: | test |
Version: | Boost 1.38.0 | Severity: | Problem |
Keywords: | Cc: |
Description
Currently we support a program option (on top of the set by Boost.Test) that allows to repeat the entire test-tree n times. This is done by repeating the building of the testtree n times. This introduces a limit since even when a run_test filter excludes testcases, they are still added to the testtree.
So the method like shown here is not very efficient, it would be much better when the same testtree can be repeated and results are accumulated.
Such improvement should be added to Boost.Test (and not build on top of it)
boost::unit_test::master_test_suite_t& rMasterTestSuite(boost::unit_test::framework::master_test_suite()); for(int i(0); i < (*spVm)repeat.as<int>(); ++i) {
rMasterTestSuite.add(...
}
I believe this is possible with current trunk. All you need is to implement custom test runner, which executed framework::run multiple times