CppUnit project page | FAQ | CppUnit home page

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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 {
16 public:
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
31 private:
33 TextTestProgressListener( const TextTestProgressListener &copy );
34
36 void operator =( const TextTestProgressListener &copy );
37
38 private:
39 };
40
41
42 CPPUNIT_NS_END
43
44 #endif // CPPUNIT_TEXTTESTPROGRESSLISTENER_H
TextTestProgressListener
TestListener that show the status of each TestCase test result.
Definition: TextTestProgressListener.h:14
TestResult
Manages TestListener.A single instance of this class is used when running the test. It is usually created by the test runner (TestRunner).
Definition: TestResult.h:51
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
Test
Base class for all test objects.All test objects should be a subclass of Test. Some test objects...
Definition: Test.h:25
TestFailure
Record of a failed Test execution.A TestFailure collects a failed test together with the caught excep...
Definition: TestFailure.h:24
TestListener.h
CPPUNIT_NS_END
#define CPPUNIT_NS_END
Definition: Portability.h:120
CPPUNIT_NS_BEGIN
#define CPPUNIT_NS_BEGIN
Definition: Portability.h:119
TestListener
Listener for test progress and result.Implementing the Observer pattern a TestListener may be registe...
Definition: TestListener.h:94
TestListener::startTest
virtual void startTest(Test *)
Called when just before a TestCase is run.
Definition: TestListener.h:100
CPPUNIT_API
#define CPPUNIT_API
Definition: CppUnitApi.h:27

| hosts this site. |  | Send comments to: CppUnit Developers