A Composite of Tests.
More...
#include <TestComposite.h>
List of all members.
Public Member Functions |
| TestComposite (const std::string &name="") |
| ~TestComposite () |
void | run (TestResult *result) |
| Run the test, collecting results.
|
int | countTestCases () const |
| Return the number of test cases invoked by run().
|
std::string | getName () const |
| Returns the test name.
|
virtual | ~Test () |
virtual int | getChildTestCount () const =0 |
| Returns the number of direct child of the test.
|
virtual Test * | getChildTestAt (int index) const |
| Returns the child test of the specified index.
|
virtual bool | findTestPath (const std::string &testName, TestPath &testPath) const |
| Finds the test with the specified name and its parents test.
|
virtual bool | findTestPath (const Test *test, TestPath &testPath) const |
| Finds the specified test and its parents test.
|
virtual Test * | findTest (const std::string &testName) const |
| Finds the test with the specified name in the hierarchy.
|
virtual TestPath | resolveTestPath (const std::string &testPath) const |
| Resolved the specified test path with this test acting as 'root'.
|
Private Attributes |
const std::string | m_name |
Detailed Description
A Composite of Tests.
Base class for all test composites. Subclass this class if you need to implement a custom TestSuite.
- See also:
- Test, TestSuite.
Constructor & Destructor Documentation
TestComposite::~TestComposite |
( |
| ) |
|
Member Function Documentation
int TestComposite::countTestCases |
( |
| ) |
const |
|
virtual |
Return the number of test cases invoked by run().
The base unit of testing is the class TestCase. This method returns the number of TestCase objects invoked by the run() method.
Implements Test.
void TestComposite::doEndSuite |
( |
TestResult * |
controller | ) |
|
|
privatevirtual |
void TestComposite::doRunChildTests |
( |
TestResult * |
controller | ) |
|
|
privatevirtual |
void TestComposite::doStartSuite |
( |
TestResult * |
controller | ) |
|
|
privatevirtual |
std::string TestComposite::getName |
( |
| ) |
const |
|
virtual |
Returns the test name.
Each test has a name. This name may be used to find the test in a suite or registry of tests.
Implements Test.
Reimplemented in TestRunner::WrappingSuite.
Member Data Documentation
const std::string TestComposite::m_name |
|
private |
The documentation for this class was generated from the following files: