Boost::Test: Registering Positive and Negative Tests
Hi All, Our project currently uses Boost ::Test and auto registers the tests with BOOST_AUTO_TEST_CASE. We have both positive an negative tests, and would like to register accordingly so we can selectively turn off negative tests (for example, turn of negative tests when running Valgrind due to Signal/Noise ratio). Is this supported? Jeff
Jeffrey Walton
Hi All,
Our project currently uses Boost ::Test and auto registers the tests with BOOST_AUTO_TEST_CASE.
We have both positive an negative tests, and would like to register accordingly so we can selectively turn off negative tests (for example, turn of negative tests when running Valgrind due to Signal/Noise ratio).
Is this supported?
You can split your test cases into 2 test suites and specify which test suite to run in a command line. I am also looking to implement new feature in Boost.Test which will present another solution for problems like this. Gennadiy
participants (2)
-
Gennadiy Rozental
-
Jeffrey Walton