CppUnit project page | FAQ | CppUnit home page |
Generic test runner.The TestRunner assumes ownership of all added tests: you can not add test or suite that are local variable since they can't be deleted. More...
#include <TestRunner.h>
Classes | |
class | WrappingSuite |
(INTERNAL) Mutating test suite. More... | |
Public Member Functions | |
TestRunner () | |
Constructs a TestRunner object. More... | |
virtual | ~TestRunner () |
Destructor. More... | |
virtual void | addTest (Test *test) |
Adds the specified test. More... | |
virtual void | run (TestResult &controller, const std::string &testPath="") |
Runs a test using the specified controller. More... | |
Protected Attributes | |
WrappingSuite * | m_suite |
Private Member Functions | |
TestRunner (const TestRunner ©) | |
Prevents the use of the copy constructor. More... | |
void | operator= (const TestRunner ©) |
Prevents the use of the copy operator. More... | |
Generic test runner.
The TestRunner assumes ownership of all added tests: you can not add test or suite that are local variable since they can't be deleted.
Example of usage:
TestRunner::TestRunner | ( | ) |
Constructs a TestRunner object.
|
virtual |
Destructor.
|
private |
Prevents the use of the copy constructor.
|
virtual |
Adds the specified test.
test | Test to add. The TestRunner takes ownership of the test. |
|
private |
Prevents the use of the copy operator.
|
virtual |
Runs a test using the specified controller.
controller | Event manager and controller used for testing |
testPath | Test path string. See Test::resolveTestPath() for detail. |
std::invalid_argument | if no test matching testPath is found. see TestPath::TestPath( Test*, const std::string &) for detail. |
|
protected |
|
hosts this site. |
Send comments to: CppUnit Developers |