I'm using cppunit in an environment making intensive use of namespaces. For each namespace I create a test suite, which itself
contains other test suites, i.e. the namespace hierarchy is reflected in the test suite hierarchy:
ns1
common
some_stuff
n2
common
other_stuff
to corresponding unit test hierarchy is created using
this won' t work as expected, as "common" in not unique.
my question is if cppunit provides a way to specify the path of a parent suite using a unique id, like "ns1/common" (i tried this one, but without success)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm using cppunit in an environment making intensive use of namespaces. For each namespace I create a test suite, which itself
contains other test suites, i.e. the namespace hierarchy is reflected in the test suite hierarchy:
ns1
common
some_stuff
n2
common
other_stuff
to corresponding unit test hierarchy is created using
CPPUNIT_REGISTRY_ADD_TO_DEFAULT("ns1");
CPPUNIT_REGISTRY_ADD("common", "ns1");
CPPUNIT_REGISTRY_ADD("some_stuff", "common");
CPPUNIT_REGISTRY_ADD("specific", "ns1");
CPPUNIT_REGISTRY_ADD_TO_DEFAULT("ns2");
CPPUNIT_REGISTRY_ADD("common", "ns2");
CPPUNIT_REGISTRY_ADD("other_stuff", "common");
this won' t work as expected, as "common" in not unique.
my question is if cppunit provides a way to specify the path of a parent suite using a unique id, like "ns1/common" (i tried this one, but without success)