CppUnit project page | FAQ | CppUnit home page |
#include <TestListener.h>
Inheritance diagram for CppUnit::TestListener:
Public Methods | |
virtual | ~TestListener () |
virtual void | startTest (Test *test) |
Called when just before a TestCase is run. More... | |
virtual void | addFailure (const TestFailure &failure) |
virtual void | endTest (Test *test) |
Called just after a TestCase was run (even if a failure occured). More... |
Implementing the Observer pattern a TestListener may be registered to a TestResult to obtain information on the testing progress. Use specialized sub classes of TestListener for text output (TextTestProgressListener). Do not use the Listener for the test result output, use a subclass of Outputter instead.
The test framework distinguishes between failures and errors. A failure is anticipated and checked for with assertions. Errors are unanticipated problems signified by exceptions that are not generated by the framework.
|
|
|
Called when a failure occurs while running a test.
Reimplemented in CppUnit::TestResultCollector. |
|
Called just after a TestCase was run (even if a failure occured).
|
|
Called when just before a TestCase is run.
Reimplemented in CppUnit::TestResultCollector. |
hosts this site. |
Send comments to: CppUnit Developers |