MQLUNIT
Public Member Functions | List of all members
MQLUNIT_ConsoleTestRunner Class Reference

Test runner that outputs results to the text console. More...

Inheritance diagram for MQLUNIT_ConsoleTestRunner:
Inheritance graph
[legend]

Public Member Functions

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

Additional Inherited Members

- Protected Member Functions inherited from MQLUNIT_TestRunner
string failureCountFormat (uint count) const
 

Detailed Description

Test runner that outputs results to the text console.

If the console is not visible, it gets allocated and displayed. In case the console exists, the runner attaches to it to display test results.

See also
MQLUNIT_TestRunner

Constructor & Destructor Documentation

◆ MQLUNIT_ConsoleTestRunner()

MQLUNIT_ConsoleTestRunner::MQLUNIT_ConsoleTestRunner ( )
inline

Constructor.

◆ ~MQLUNIT_ConsoleTestRunner()

MQLUNIT_ConsoleTestRunner::~MQLUNIT_ConsoleTestRunner ( )
inline

Destructor.

Member Function Documentation

◆ addFailure()

void MQLUNIT_ConsoleTestRunner::addFailure ( MQLUNIT_TestFailure failure)
virtual

Registeres a test failure.

Parameters
failure: failure details
See also
MQLUNIT_TestFailure

Implements MQLUNIT_TestListener.

◆ endSuite()

void MQLUNIT_ConsoleTestRunner::endSuite ( MQLUNIT_Test test)
inlinevirtual

Test suite ended event.

Parameters
test: test case reference

Implements MQLUNIT_TestListener.

◆ endTest()

void MQLUNIT_ConsoleTestRunner::endTest ( MQLUNIT_Test test,
const string  name 
)
inlinevirtual

Test ended event.

Parameters
test: test case reference
name: name of a test

Implements MQLUNIT_TestListener.

◆ run()

bool MQLUNIT_ConsoleTestRunner::run ( MQLUNIT_Test test)
virtual

Run a test and output the result to the console.

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

Implements MQLUNIT_TestRunner.

◆ startSuite()

void MQLUNIT_ConsoleTestRunner::startSuite ( MQLUNIT_Test test)
inlinevirtual

Test suite started event.

Parameters
test: test case reference

Implements MQLUNIT_TestListener.

◆ startTest()

void MQLUNIT_ConsoleTestRunner::startTest ( MQLUNIT_Test test,
const string  name 
)
virtual

Test started event.

Parameters
test: test case reference
name: name of a test

Implements MQLUNIT_TestListener.


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

Copyright © 2017 Eneset Group Trust