31 enum Type { NORMAL, IGNORED, DISABLED };
36 if (t == IGNORED) ++ignoredCount;
37 if (t == DISABLED) ++disabledCount;
54 virtual int countTestCases ()
const =0;
58 virtual int getChildTestCount()
const =0;
71 virtual Test *getChildTestAt(
int index )
const;
78 virtual std::string getName ()
const =0;
86 virtual bool findTestPath(
const std::string &testName,
95 virtual bool findTestPath(
const Test *test,
103 virtual Test *findTest(
const std::string &testName )
const;
111 virtual TestPath resolveTestPath(
const std::string &testPath )
const;
116 virtual bool include(
const std::string& testName)
const = 0;
118 virtual bool filter(
const Filter&) = 0;
125 virtual void checkIsValidIndex(
int index )
const;
131 virtual Test *doGetChildTestAt(
int index )
const =0;
137 #endif // CPPUNIT_TEST_H
static unsigned long ignoredCount
Definition: Test.h:30
Type
Definition: Test.h:31
Manages TestListener.A single instance of this class is used when running the test. It is usually created by the test runner (TestRunner).
Definition: TestResult.h:51
Base class for all test objects.All test objects should be a subclass of Test. Some test objects...
Definition: Test.h:26
Type getType() const
Definition: Test.h:40
static unsigned long disabledCount
Definition: Test.h:29
Test()
Definition: Test.h:33
#define CPPUNIT_NS_END
Definition: Portability.h:120
Type _type
Definition: Test.h:32
#define CPPUNIT_NS_BEGIN
Definition: Portability.h:119
A List of Test representing a path to access a Test.The path can be converted to a string and resolve...
Definition: TestPath.h:34
Use this filter to only run some of the registered tests.
Definition: Test.h:114
virtual ~Filter()
Definition: Test.h:115
virtual ~Test()
Definition: Test.h:42
Test & setType(Type t)
Definition: Test.h:34
#define CPPUNIT_API
Definition: CppUnitApi.h:27