implements test program's main() function while enabling customization More...
#include <unitTestMain.h>
Public Member Functions | |
virtual | ~TestProgram ()=default |
virtual void | startup () |
int | run (int argc, char *argv[]) |
Private Member Functions | |
bool | runTests () |
Detailed Description
Definition at line 25 of file unitTestMain.h.
Constructor & Destructor Documentation
◆ ~TestProgram()
|
virtualdefault |
Member Function Documentation
◆ run()
Implements main(), combining all the steps. Must be called from main().
- Returns
- desired main() result.
Definition at line 44 of file unitTestMain.h.
References Debug::Levels, runTests(), and startup().
Referenced by main().
◆ runTests()
|
private |
runs all tests registered with CPPUNIT_TEST_SUITE_REGISTRATION() calls
- Returns
- whether all tests were successful
Definition at line 58 of file unitTestMain.h.
Referenced by run().
◆ startup()
|
inlinevirtual |
Runs before all tests. Does nothing by default.
Reimplemented in MyTestProgram, MyTestProgram, MyTestProgram, MyTestProgram, MyTestProgram, MyTestProgram, MyTestProgram, MyTestProgram, MyTestProgram, MyTestProgram, and MyTestProgram.
Definition at line 32 of file unitTestMain.h.
Referenced by run().
The documentation for this class was generated from the following file:
- include/unitTestMain.h