89 virtual Test *
findTest(
const std::string &testName )
const;
#define CPPUNIT_API
Definition CppUnitApi.h:27
#define CPPUNIT_NS_END
Definition Portability.h:106
#define CPPUNIT_NS_BEGIN
Definition Portability.h:105
Base class for all test objects.
Definition Test.h:26
virtual Test * getChildTestAt(int index) const
Returns the child test of the specified index.
Definition Test.cpp:11
virtual std::string getName() const =0
Returns the test name.
virtual void checkIsValidIndex(int index) const
Definition Test.cpp:90
virtual bool findTestPath(const std::string &testName, TestPath &testPath) const
Finds the test with the specified name and its parents test.
Definition Test.cpp:32
virtual int getChildTestCount() const =0
Returns the number of direct child of the test.
virtual void run(TestResult *result)=0
Run the test, collecting results.
virtual TestPath resolveTestPath(const std::string &testPath) const
Resolved the specified test path with this test acting as 'root'.
Definition Test.cpp:82
virtual int countTestCases() const =0
Return the number of test cases invoked by run().
virtual ~Test()
Definition Test.h:28
virtual Test * doGetChildTestAt(int index) const =0
Returns the child test of the specified valid index.
virtual Test * findTest(const std::string &testName) const
Finds the test with the specified name in the hierarchy.
Definition Test.cpp:19
A List of Test representing a path to access a Test.
Definition TestPath.h:30
Manages TestListener.
Definition TestResult.h:48