CppUnit project page | FAQ | CppUnit home page |
Classes | |
class | TestFactoryRegistry |
Registry for TestFactory. More... | |
class | TestSuite |
A Composite of Tests. More... | |
Defines | |
#define | CPPUNIT_TEST_SUITE_REGISTRATION(ATestFixtureType) |
#define | CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(ATestFixtureType, suiteName) |
Adds the specified fixture suite to the specified registry suite. | |
#define | CPPUNIT_REGISTRY_ADD(which, to) |
#define | CPPUNIT_REGISTRY_ADD_TO_DEFAULT(which) |
|
Value: Adds that the specified registry suite to another registry suite. Use this macros to automatically create test registry suite hierarchy. For example, if you want to create the following hierarchy:
You can do this automatically with:
There is no specific order of declaration. Think of it as declaring links. You register the test in each suite using CPPUNIT_TEST_SUITE_NAMED_REGISTRATION.
|
|
Value: Adds that the specified registry suite to the default registry suite. This macro is just like CPPUNIT_REGISTRY_ADD except the specified registry suite is added to the default suite (root suite).
|
|
Value: Adds the specified fixture suite to the specified registry suite. This macro declares a static variable whose construction causes a test suite factory to be inserted in the global registry suite of the specified name. The registry is available by calling the static function CppUnit::TestFactoryRegistry::getRegistry(). For the suite name, use a string returned by a static function rather than a hardcoded string. That way, you can know what are the name of named registry and you don't risk mistyping the registry name.
|
|
Value: Adds the specified fixture suite to the unnamed registry. This macro declares a static variable whose construction causes a test suite factory to be inserted in a global registry of such factories. The registry is available by calling the static function CppUnit::TestFactoryRegistry::getRegistry().
|
hosts this site. |
Send comments to: CppUnit Developers |