CppTest home page CppTest project page

Test::CollectorOutput Class Reference

Collector output. More...

#include <cpptest-collectoroutput.h>

Inheritance diagram for Test::CollectorOutput:

Test::Output Test::HtmlOutput

List of all members.

Public Member Functions

Protected Types

Protected Member Functions

Protected Attributes


Detailed Description

Collector output.

Base class for output handlers that need to report status when all tests have executed.


Constructor & Destructor Documentation

Test::CollectorOutput::CollectorOutput (  )  [protected]

Constructs a collector object.


Member Function Documentation

void Test::CollectorOutput::finished ( int  tests,
const Time time 
) [virtual]

Called when testing is finished.

Parameters:
tests Total number of tests in all suites.
time Total elapsed time for all tests.

Reimplemented from Test::Output.

virtual void Test::CollectorOutput::suite_start ( int  tests,
const std::string &  name 
) [virtual]

Called when a suite is entered.

Parameters:
tests Number of tests in this suite.
name Name of the suite.

Reimplemented from Test::Output.

virtual void Test::CollectorOutput::suite_end ( int  tests,
const std::string &  name,
const Time time 
) [virtual]

Called when a suite is finished.

Parameters:
tests Number of tests in this suite.
name Name of the suite.
time Total elapsed time for all tests in this suite.

Reimplemented from Test::Output.

virtual void Test::CollectorOutput::test_start ( const std::string &  name  )  [virtual]

Called when a tests is executed.

Parameters:
name Name of the test function.

Reimplemented from Test::Output.

virtual void Test::CollectorOutput::test_end ( const std::string &  name,
bool  ok,
const Time time 
) [virtual]

Called when a test if finished, regardless if an assertment was issued.

Parameters:
name Name of the test function.
ok True if the test was successful; false otherwise.
time Execution time.

Reimplemented from Test::Output.

void Test::CollectorOutput::assertment ( const Source s  )  [virtual]

Called when an assertment is issued.

Parameters:
s Assert point information.

Reimplemented from Test::Output.


The documentation for this class was generated from the following files:
Supported by:

SourceForge Logo