Trouble removing tests from default registry

39 Views Asked by At

I have a trouble in finding a way to un-register tests that were added using the CPPUNIT_TEST_SUITE_REGISTRATION macro in CppUnit. I am attempting to optimize my main test runner by un-registering all tests that I do not care about for a given test, but when tests are added to the default registry using above method and then retrieved using CppUnit::TestFactoryRegistry::getRegistry(), the tests don't seem to be un-registerable.

Although registering each test to a named registry instead of the default registry using CPPUNIT_TEST_SUITE_NAMED_REGISTRATION does the purpose it requires me to edit nearly 300 existing tests. Is there a method to localize this solution?

0

There are 0 best solutions below