Is there a way to repeatedly run a unit-test or a set of unit-tests in Boost test?
Let say I have the following:
BOOST_FIXTURE_TEST_SUITE(someSuite, someFixture)
BOOST_AUTO_TEST_CASE(someTest)
{
...
}
BOOST_AUTO_TEST_SUITE_END()
... and I'd like to run someTest
with setup/teardown for let say 100 times.
You can always run your test program in a loop. I do not believe there is test case/suite level feature to do this now. Feel free to request one through the ticket.
According to boost config there is no option to specify multiple times execution.
It is possible to use some Linux commands like:
for i in `seq 10`; do command; done
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With