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

Test result collects the results of executing a test. More...

Inheritance diagram for MQLUNIT_TestResult:
Inheritance graph
[legend]

Public Member Functions

 MQLUNIT_TestResult ()
 Constructor. More...
 
void addListener (MQLUNIT_TestListener *listener)
 Registeres a test listener. More...
 
void addFailure (MQLUNIT_TestFailure *failure)
 Adds a failure to the list of test failures. 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)
 Informs the result that a test was started. More...
 
void endTest (MQLUNIT_Test *test, const string name)
 Informs the result that a test was completed. More...
 
uint runCount () const
 Returns a total number of tests run. More...
 
uint failureCount () const
 Returns a total number of failed tests. More...
 
- Public Member Functions inherited from MQLUNIT_TestListener
 MQLUNIT_TestListener ()
 Constructor. More...
 
virtual ~MQLUNIT_TestListener ()
 Destructor. More...
 

Detailed Description

Test result collects the results of executing a test.

It is an instance of the Collecting Parameter pattern.

See also
MQLUNIT_TestListener

Constructor & Destructor Documentation

◆ MQLUNIT_TestResult()

MQLUNIT_TestResult::MQLUNIT_TestResult ( )
inline

Constructor.

Member Function Documentation

◆ addFailure()

void MQLUNIT_TestResult::addFailure ( MQLUNIT_TestFailure failure)
virtual

Adds a failure to the list of test failures.

Parameters
failure: failure details
See also
MQLUNIT_TestFailure

Implements MQLUNIT_TestListener.

◆ addListener()

void MQLUNIT_TestResult::addListener ( MQLUNIT_TestListener listener)
inline

Registeres a test listener.

Parameters
listener: test listener
See also
MQLUNIT_TestListener

◆ endSuite()

void MQLUNIT_TestResult::endSuite ( MQLUNIT_Test test)
virtual

Test suite ended event.

Parameters
test: test case reference

Implements MQLUNIT_TestListener.

◆ endTest()

void MQLUNIT_TestResult::endTest ( MQLUNIT_Test test,
const string  name 
)
virtual

Informs the result that a test was completed.

Parameters
test: test case reference
name: test name

Implements MQLUNIT_TestListener.

◆ failureCount()

uint MQLUNIT_TestResult::failureCount ( ) const
inline

Returns a total number of failed tests.

Returns
total number of failed tests

◆ runCount()

uint MQLUNIT_TestResult::runCount ( ) const
inline

Returns a total number of tests run.

Returns
total number of tests run

◆ startSuite()

void MQLUNIT_TestResult::startSuite ( MQLUNIT_Test test)
virtual

Test suite started event.

Parameters
test: test case reference

Implements MQLUNIT_TestListener.

◆ startTest()

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

Informs the result that a test was started.

Parameters
test: test case reference
name: test name

Implements MQLUNIT_TestListener.


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

Copyright © 2017 Eneset Group Trust