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
BriefTestProgressListener
TestListener that prints the name of each test before running it.
Definition: BriefTestProgressListener.h:13
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::endTest
virtual void endTest(Test *)
Called just after a TestCase was run (even if a failure occured).
Definition: TestListener.h:110
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
BriefTestProgressListener::m_lastTestFailed
bool m_lastTestFailed
Definition: BriefTestProgressListener.h:37
CPPUNIT_API
#define CPPUNIT_API
Definition: CppUnitApi.h:27

| Send comments to: CppUnit Developers