1#ifndef CPPUNIT_EXTENSIONS_TESTNAMER_H
2#define CPPUNIT_EXTENSIONS_TESTNAMER_H
28# define CPPUNIT_TESTNAMER_DECL( variableName, FixtureType ) \
29 CPPUNIT_NS::TestNamer variableName( typeid(FixtureType) )
44 TestNamer(
const std::type_info &typeInfo );
49 TestNamer(
const std::string &fixtureName );
65 virtual std::string
getTestNameFor(
const std::string &testMethodName )
const;
68 std::string
getTestNameFor(
const std::string& testMethodName,
const E& val)
const
70 return getTestNameFor(testMethodName) +
" with parameter: " + CPPUNIT_NS::StringHelper::toString(val);
#define CPPUNIT_API
Definition CppUnitApi.h:27
#define CPPUNIT_NS_END
Definition Portability.h:106
#define CPPUNIT_NS_BEGIN
Definition Portability.h:105
std::string m_fixtureName
Definition TestNamer.h:74
virtual std::string getFixtureName() const
Returns the name of the fixture.
Definition TestNamer.cpp:23
std::string getTestNameFor(const std::string &testMethodName, const E &val) const
Definition TestNamer.h:68
virtual std::string getTestNameFor(const std::string &testMethodName) const
Returns the name of the test for the specified method.
Definition TestNamer.cpp:29
TestNamer(const std::type_info &typeInfo)
Constructs a namer using the fixture's type-info.
Definition TestNamer.cpp:8