November 2004
Intermediate to advanced
212 pages
5h 2m
English
TestListener
The class
TestListener
(see Figure C-25)
defines an interface for observers to receive test progress
notifications from a TestResult. The method
TestResult::addListener( ) is used to register a
TestListener.
TestListener belongs to the namespace
CppUnit. It is declared in
TestListener.h, which also provides its default
empty implementation.
![]() |
class TestListener
virtual ~TestListener( )
A destructor.
virtual void addFailure(const TestFailure &failure)
A method called to notify the TestListener that a
failure has occurred. The argument failure is a
temporary object that is deleted after the call.
virtual void endTest(Test *test)
A method called to notify the TestListener that
test has ended.
virtual void startTest(Test *test)
A method called to notify the TestListener that
test is about to be run.
None.
None.
Read now
Unlock full access