Interface for a general testing object. More...
Interface for a general testing object.
This object is meant to be the base class for testing objects that can easily be integrated into composite software packages with integrated testing facilities.
The general intention is that developers would implement all tests as member methods of classes inheriting from this class.
#include <Testing.H>
Public Types | |
typedef ResultsType | Results |
typedef void(manager::* | TestFunctionType) (ResultsType &) |
typedef std::map< std::string, TestFunctionType > | FunctionMapType |
Public Member Functions | |
virtual void | Prologue () |
Set up the tests and any test fixture constructs. More... | |
virtual void | Process (Results &results) |
Process all tests and populate a "results" object. More... | |
virtual void | ProcessTests (std::list< std::string > &names, Results &results) |
Process named tests from a list and populate a "results" object. More... | |
virtual void | RunTest (const std::string &name, Results &results) |
Run a particular test. More... | |
virtual void | Epilogue () |
Clean up any test fixtures that need cleaning. More... | |
virtual void | AddTest (const std::string &testName, TestFunctionType TestFunc) |
Add a test. More... | |
FunctionMapType & | FunctionMap () |
virtual void | ListTests (std::ostream &outStream) |
virtual | ~manager () |
Protected Attributes | |
FunctionMapType | testFunctionMap |
typedef std::map<std::string,TestFunctionType> FunctionMapType |
|
inlinevirtual |
Add a test.
Definition at line 123 of file Testing.H.
Referenced by testmanager::AddTest().
|
inlinevirtual |
Clean up any test fixtures that need cleaning.
Reimplemented in ParallelTestingObject< CommType, ResultsType >, and TestingObject< ResultsType >.
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Process all tests and populate a "results" object.
Reimplemented in ParallelTestingObject< CommType, ResultsType >, TestingObject< ResultsType >, testmanager, and testmanager.
|
inlinevirtual |
Process named tests from a list and populate a "results" object.
Reimplemented in ParallelTestingObject< CommType, ResultsType >, TestingObject< ResultsType >, testmanager, and testmanager.
|
inlinevirtual |
Set up the tests and any test fixture constructs.
Reimplemented in ParallelTestingObject< CommType, ResultsType >, TestingObject< ResultsType >, and testmanager.
|
inlinevirtual |
Run a particular test.
Reimplemented in ParallelTestingObject< CommType, ResultsType >, and TestingObject< ResultsType >.
|
protected |