CppUnit project page | FAQ

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

Classes | Macros
TestNamer.h File Reference
`#include <cppunit/Portability.h>`
`#include <string>`

Go to the source code of this file.

## Classes
class | TestNamer
| Names a test or a fixture suite. More...

## Macros
#define | CPPUNIT_TESTNAMER_DECL(variableName, FixtureType) CPPUNIT_NS::TestNamer variableName( std::string(#FixtureType) )
| Declares a TestNamer. More...

## Macro Definition Documentation

#define CPPUNIT_TESTNAMER_DECL | ( |  | variableName,
|  |  | FixtureType
| ) |  | CPPUNIT_NS::TestNamer variableName( std::string(#FixtureType) )

Declares a TestNamer.

Declares a TestNamer for the specified type, using RTTI if enabled, otherwise using macro string expansion.

RTTI is used if CPPUNIT_USE_TYPEINFO_NAME is defined and not null.

* void someMethod()
* {
* CPPUNIT_TESTNAMER_DECL( namer, AFixtureType );
* std::string fixtureName = namer.getFixtureName();
* ...
*

See Also
  TestNamer

| Send comments to: CppUnit Developers