CppUnit project page | FAQ | CppUnit home page |
#include <TestDecorator.h>
Inheritance diagram for CppUnit::TestDecorator:
Public Methods | |
TestDecorator (Test *test) | |
~TestDecorator () | |
void | run (TestResult *result) |
Run the test, collecting results. More... | |
int | countTestCases () const |
Return the number of test cases invoked by run(). More... | |
std::string | getName () const |
Returns the test name. More... | |
std::string | toString () const |
Description of the test, for diagnostic output. More... | |
Protected Attributes | |
Test * | m_test |
Private Methods | |
TestDecorator (const TestDecorator &) | |
void | operator= (const TestDecorator &) |
TestDecorator provides an alternate means to extend functionality of a test class without subclassing the test. Instead, one can subclass the decorater and use it to wrap the test class.
Does not assume ownership of the test it decorates
|
|
|
|
|
|
|
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 CppUnit::Test. Reimplemented in CppUnit::RepeatedTest. |
|
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 CppUnit::Test. |
|
|
|
Run the test, collecting results.
Implements CppUnit::Test. Reimplemented in CppUnit::RepeatedTest. |
|
Description of the test, for diagnostic output.
The test description will typically include the test name, but may have additional description. For example, a test suite named Implements CppUnit::Test. Reimplemented in CppUnit::RepeatedTest. |
|
|
hosts this site. |
Send comments to: CppUnit Developers |