TestToolBox::Runner Class Reference

This class runs user defined test functions and organizes their execution. More...

#include <Runner.h>

Collaboration diagram for TestToolBox::Runner:
Collaboration graph
[legend]

List of all members.

Classes

struct  Register
 Helper class to register a user defined test function. More...

Public Member Functions

int Execute (RunnerExtensionPoints *in_pExtensionPoints=0)
 Automatically execute the defined test functions.

Static Public Member Functions

template<class YOUR_CLASS_TYPE >
static int RunMain (char const *in_contextInfo, char const *in_fileName, long const &in_lineNum)
 Executes all test functions according to the given command line params. You can specify your extension class (derived from RunnerExtensionPoints) to add code for initialization and cleanup of test functions. This funmction is called from within macros TTB_USE_DEFAULT_TEST_RUNNER and TTB_USE_TEST_RUNNER_WITH_EXTENSIONS.

Private Types

enum  CallType { BEFORE_CALL_OF_TEST_FUNC, AFTER_CALL_OF_TEST_FUNC }

Private Member Functions

void AddTestFunc (FuncInfo const &in_funcInfo)
 Store the given test function for later execution.
void DisplayCommandlineSyntax (void)
 Display info about possible commandline args.
FuncInfos ArrangeTestSequence (void)
 Select and sort the test functions according to the given command line params.
void CallTestFunc (VoidFunc *in_pVoidFunc, std::string const &in_info, int &io_numExceptionsCaught)
 Call a single test function and catch possible exceptions.
void CallExtensionPoints (RunnerExtensionPoints *in_pExtensionPoints, CallType in_callType, FuncInfo const &in_rFuncInfo, std::string const &in_info, int &io_numExceptionsCaught)
 Call an extension function and catch possible exceptions.
PerformanceLogger * StartPerformanceLoggingIfRequired (double &out_loopTimeSec)
 Starts logging of performance data if required from command line. Returns 0 if no data collecting is needed.
void FinishPerformanceLoggingIfRequired (PerformanceLogger *in_pPerformanceLogger)
 Finishes logging of performance data.

Private Attributes

FuncInfos m_funcInfos
 The stored test functions.

Detailed Description

This class runs user defined test functions and organizes their execution.

See also:
Runner.h (File documentation)
Using Runner (Usage documentation)

The documentation for this class was generated from the following file:
Generated on Fri May 27 22:57:24 2011 for TestToolBox by  doxygen 1.6.3