CppUnit project page | FAQ |
(INTERNAL) Mutating test suite. More...
#include <TestRunner.h>
Public Member Functions | |
WrappingSuite (const std::string &name="All Tests") | |
int | getChildTestCount () const |
Returns the number of direct child of the test. | |
std::string | getName () const |
Returns the test name. | |
void | run (TestResult *result) |
Run the test, collecting results. | |
Public Member Functions inherited from TestSuite | |
TestSuite (std::string name="") | |
Default constructor. | |
~TestSuite () | |
Destructor. | |
void | addTest (Test *test) |
Adds a test to the suite. | |
const CppUnitVector< Test * > & | getTests () const |
virtual void | deleteContents () |
Deletes all tests in the suite. | |
Public Member Functions inherited from TestComposite | |
TestComposite (const std::string &name="") | |
~TestComposite () | |
int | countTestCases () const |
Return the number of test cases invoked by run(). | |
Public Member Functions inherited from Test | |
virtual | ~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'. |
Protected Member Functions | |
Test * | doGetChildTestAt (int index) const |
Returns the child test of the specified valid index. | |
bool | hasOnlyOneTest () const |
Test * | getUniqueChildTest () const |
(INTERNAL) Mutating test suite.
CPPUNIT_NS_BEGIN TestRunner::WrappingSuite::WrappingSuite | ( | const std::string & | name = "All Tests" | ) |
|
protectedvirtual |
Returns the child test of the specified valid index.
index | Zero based valid index of the child test to return. |
NULL
. Reimplemented from TestSuite.
|
virtual |
Returns the number of direct child of the test.
Reimplemented from TestSuite.
|
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.
Reimplemented from TestComposite.
|
protected |
|
protected |
|
virtual |
Run the test, collecting results.
Reimplemented from TestComposite.
Send comments to: CppUnit Developers |