CppTest home page | CppTest project page |
#include <cpptest-collectoroutput.h>
Public Member Functions | |
virtual void | finished (int tests, const Time &time) |
virtual void | suite_start (int tests, const std::string &name) |
virtual void | suite_end (int tests, const std::string &name, const Time &time) |
virtual void | test_start (const std::string &name) |
virtual void | test_end (const std::string &name, bool ok, const Time &time) |
virtual void | assertment (const Source &s) |
![]() | |
virtual | ~Output () |
virtual void | initialize (int tests) |
Protected Types | |
typedef std::list< Source > | Sources |
typedef std::vector< TestInfo > | Tests |
typedef std::list< SuiteInfo > | Suites |
Protected Member Functions | |
CollectorOutput () | |
![]() | |
Output () |
Protected Attributes | |
Suites | _suites |
int | _total_errors |
int | _total_tests |
Time | _total_time |
Collector output.
Base class for output handlers that need to report status when all tests have executed.
|
protected |
Constructs a collector object.
|
virtual |
Called when testing is finished.
\param tests Total number of tests in all suites. \param time Total elapsed time for all tests.
Reimplemented from Test::Output.
|
virtual |
Called when a suite is entered.
\param tests Number of tests in this suite. \param name Name of the suite.
Reimplemented from Test::Output.
|
virtual |
Called when a suite is finished.
\param tests Number of tests in this suite. \param name Name of the suite. \param time Total elapsed time for all tests in this suite.
Reimplemented from Test::Output.
|
virtual |
Called when a tests is executed.
\param name Name of the test function.
Reimplemented from Test::Output.
|
virtual |
Called when a test if finished, regardless if an assertment was issued.
name | Name of the test function. |
ok | True if the test was successful; false otherwise. |
time | Execution time. |
Reimplemented from Test::Output.
|
virtual |
Called when an assertment is issued.
\param s Assert point information.
Reimplemented from Test::Output.