CppUnit - The Unit Testing Library

CppUnit project page | FAQ

BriefTestProgressListener.h
Go to the documentation of this file.
1 #ifndef CPPUNIT_BRIEFTESTPROGRESSLISTENER_H
2 #define CPPUNIT_BRIEFTESTPROGRESSLISTENER_H
3
4 #include <cppunit/TestListener.h>
5
6
7 CPPUNIT_NS_BEGIN
8
9
13 class CPPUNIT_API BriefTestProgressListener : public TestListener
14 {
15 public:
18 BriefTestProgressListener();
19
21 virtual ~BriefTestProgressListener();
22
23 void startTest( Test *test );
24
25 void addFailure( const TestFailure &failure );
26
27 void endTest( Test *test );
28
29 private:
31 BriefTestProgressListener( const BriefTestProgressListener &copy );
32
34 void operator =( const BriefTestProgressListener &copy );
35
36 private:
37 bool m_lastTestFailed;
38 };
39
40
41 CPPUNIT_NS_END
42
43 #endif // CPPUNIT_BRIEFTESTPROGRESSLISTENER_H
CPPUNIT_API
#define CPPUNIT_API
Definition: CppUnitApi.h:27
TestFailure
Record of a failed Test execution.
Definition: TestFailure.h:24
TestListener::addFailure
virtual void addFailure(const TestFailure &)
Called when a failure occurs while running a test.
Definition: TestListener.h:107
BriefTestProgressListener
TestListener that prints the name of each test before running it.
Definition: BriefTestProgressListener.h:13
TestListener.h
TestListener::endTest
virtual void endTest(Test *)
Called just after a TestCase was run (even if a failure occured).
Definition: TestListener.h:110
CPPUNIT_NS_BEGIN
#define CPPUNIT_NS_BEGIN
Definition: Portability.h:105
CPPUNIT_NS_END
#define CPPUNIT_NS_END
Definition: Portability.h:106
Test
Base class for all test objects.
Definition: Test.h:25
TestListener::startTest
virtual void startTest(Test *)
Called when just before a TestCase is run.
Definition: TestListener.h:100
BriefTestProgressListener::m_lastTestFailed
bool m_lastTestFailed
Definition: BriefTestProgressListener.h:37
TestListener
Listener for test progress and result.
Definition: TestListener.h:94

| Send comments to: CppUnit Developers