CppTest
Version 2.0.0
|
#include <cpptest-output.h>
Public Member Functions | |
virtual | ~Output () |
virtual void | initialize (int tests) |
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) |
Protected Member Functions | |
Output () | |
Test suite output handler.
Abstract base class for all suite output handlers. Derive from this class to create real output handlers that creates arbitrary complex output handlers.
All parts of testing is reported (test start/stop, suite start/stop, individual test start/stop, and assertments), thus giving maximum flexibility for derived classes.
|
inlinevirtual |
Empty destructor.
|
inlineprotected |
Empty constructor.
|
inlinevirtual |
Called when testing is started.
tests | Total number of tests in all suites. |
Referenced by Test::Suite::run().
|
inlinevirtual |
Called when testing is finished.
tests | Total number of tests in all suites. |
time | Total elapsed time for all tests. |
Reimplemented in Test::TextOutput, and Test::CollectorOutput.
Referenced by Test::Suite::run().
|
inlinevirtual |
Called when a suite is entered.
tests | Number of tests in this suite. |
name | Name of the suite. |
Reimplemented in Test::TextOutput, and Test::CollectorOutput.
|
inlinevirtual |
Called when a suite is finished.
tests | Number of tests in this suite. |
name | Name of the suite. |
time | Total elapsed time for all tests in this suite. |
Reimplemented in Test::TextOutput, and Test::CollectorOutput.
|
inlinevirtual |
Called when a tests is executed.
name | Name of the test function. |
Reimplemented in Test::CollectorOutput.
|
inlinevirtual |
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 in Test::TextOutput, and Test::CollectorOutput.
|
inlinevirtual |
Called when an assertment is issued.
s | Assert point information. |
Reimplemented in Test::CompilerOutput, Test::TextOutput, and Test::CollectorOutput.
Referenced by Test::Suite::assertment().