#include <Test.h>
Inheritance diagram for Test:
All test objects should be a subclass of Test. Some test objects, TestCase for example, represent one individual test. Other test objects, such as TestSuite, are comprised of several tests.
When a Test is run, the result is collected by a TestResult object.
[inline, virtual]
[protected, virtual]
Throws an exception if the specified index is invalid.
[pure 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.
Implemented in RepeatedTest, TestDecorator, TestComposite, and TestLeaf.
[protected, pure virtual]
Returns the child test of the specified valid index.
NULL
. Implemented in TestDecorator, TestLeaf, TestRunner::WrappingSuite, and TestSuite.
[virtual]
Finds the test with the specified name in the hierarchy.
NULL
.
Finds the specified test and its parents test.
this
and test. true
if the specified test is found, false
otherwise.
Finds the test with the specified name and its parents test.
this
and test. true
if a test with the specified name is found, false
otherwise.
[virtual]
Returns the child test of the specified index.
This method test if the index is valid, then call doGetChildTestAt() if the index is valid. Otherwise std::out_of_range exception is thrown.
You should override doGetChildTestAt() method.
NULL
.
[pure virtual]
Returns the number of direct child of the test.
Implemented in TestDecorator, TestLeaf, TestRunner::WrappingSuite, and TestSuite.
[pure 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.
Implemented in TestCaseDecorator, TestDecorator, TestCase, TestComposite, and TestRunner::WrappingSuite.
[virtual]
Resolved the specified test path with this test acting as 'root'.
[pure virtual]
Run the test, collecting results.
Implemented in RepeatedTest, TestDecorator, TestSetUp, TestCase, TestComposite, and TestRunner::WrappingSuite.