MQLUNIT
Public Member Functions | Protected Member Functions | List of all members
MQLUNIT_TestRunner Class Referenceabstract

Base class for all test runners. More...

Inheritance diagram for MQLUNIT_TestRunner:
Inheritance graph
[legend]

Public Member Functions

virtual ~MQLUNIT_TestRunner ()
 Destructor. More...
 
virtual bool run (MQLUNIT_Test *test)=0
 Run a test and output the result. More...
 
- Public Member Functions inherited from MQLUNIT_TestListener
 MQLUNIT_TestListener ()
 Constructor. More...
 
virtual ~MQLUNIT_TestListener ()
 Destructor. More...
 
virtual void addFailure (MQLUNIT_TestFailure *failure)=0
 Failure occurred event. More...
 
virtual void startSuite (MQLUNIT_Test *test)=0
 Test suite started event. More...
 
virtual void endSuite (MQLUNIT_Test *test)=0
 Test suite ended event. More...
 
virtual void startTest (MQLUNIT_Test *test, const string name)=0
 Test started event. More...
 
virtual void endTest (MQLUNIT_Test *test, const string name)=0
 Test ended event. More...
 

Protected Member Functions

string failureCountFormat (uint count) const
 

Detailed Description

Base class for all test runners.

See also
MQLUNIT_TestListener

Constructor & Destructor Documentation

◆ ~MQLUNIT_TestRunner()

virtual MQLUNIT_TestRunner::~MQLUNIT_TestRunner ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ failureCountFormat()

string MQLUNIT_TestRunner::failureCountFormat ( uint  count) const
protected

◆ run()

virtual bool MQLUNIT_TestRunner::run ( MQLUNIT_Test test)
pure virtual

Run a test and output the result.

Parameters
test: a test to run
Returns
true, if all tests succeeded, false if there were failures
See also
MQLUNIT_Test

Implemented in MQLUNIT_XMLTestRunner, MQLUNIT_TextFileTestRunner, MQLUNIT_TerminalTestRunner, and MQLUNIT_ConsoleTestRunner.


The documentation for this class was generated from the following file:

Copyright © 2017 Eneset Group Trust