CppUnit - The Unit Testing Library

CppUnit project page | FAQ

TextTestProgressListener.h
Go to the documentation of this file.
1#ifndef CPPUNIT_TEXTTESTPROGRESSLISTENER_H
2#define CPPUNIT_TEXTTESTPROGRESSLISTENER_H
3
4#include <cppunit/TestListener.h>
5
6
7 CPPUNIT_NS_BEGIN
8
9
14 class CPPUNIT_API TextTestProgressListener : public TestListener
15{
16public:
19 TextTestProgressListener();
20
22 virtual ~TextTestProgressListener();
23
24 void startTest( Test *test );
25
26 void addFailure( const TestFailure &failure );
27
28 void endTestRun( Test *test,
29 TestResult *eventManager );
30
31private:
33 TextTestProgressListener( const TextTestProgressListener &copy );
34
36 void operator =( const TextTestProgressListener &copy );
37
38private:
39};
40
41
42 CPPUNIT_NS_END
43
44#endif // CPPUNIT_TEXTTESTPROGRESSLISTENER_H
CPPUNIT_API
#define CPPUNIT_API
Definition CppUnitApi.h:27
CPPUNIT_NS_END
#define CPPUNIT_NS_END
Definition Portability.h:106
CPPUNIT_NS_BEGIN
#define CPPUNIT_NS_BEGIN
Definition Portability.h:105
TestListener.h
TestFailure
Record of a failed Test execution.
Definition TestFailure.h:25
Test
Base class for all test objects.
Definition Test.h:26
TestListener
Listener for test progress and result.
Definition TestListener.h:95
TestListener::endTestRun
virtual void endTestRun(Test *, TestResult *)
Called by a TestRunner after running the test.
Definition TestListener.h:139
TestListener::addFailure
virtual void addFailure(const TestFailure &)
Called when a failure occurs while running a test.
Definition TestListener.h:107
TestListener::startTest
virtual void startTest(Test *)
Called when just before a TestCase is run.
Definition TestListener.h:100
TestResult
Manages TestListener.
Definition TestResult.h:48
TextTestProgressListener::TextTestProgressListener
TextTestProgressListener(const TextTestProgressListener &copy)
Prevents the use of the copy constructor.
TextTestProgressListener::TextTestProgressListener
TextTestProgressListener()
Definition TextTestProgressListener.cpp:9

| Send comments to: CppUnit Developers