CppUnit project page FAQ CppUnit home page

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 
8 
9 
14 {
15 public:
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:
32 
34  void operator =( const BriefTestProgressListener &copy );
35 
36 private:
38 };
39 
40 
42 
43 #endif // CPPUNIT_BRIEFTESTPROGRESSLISTENER_H
TestListener that prints the name of each test before running it.
Definition: BriefTestProgressListener.h:13
virtual void addFailure(const TestFailure &)
Called when a failure occurs while running a test.
Definition: TestListener.h:107
Base class for all test objects.All test objects should be a subclass of Test. Some test objects...
Definition: Test.h:25
Record of a failed Test execution.A TestFailure collects a failed test together with the caught excep...
Definition: TestFailure.h:24
virtual void endTest(Test *)
Called just after a TestCase was run (even if a failure occured).
Definition: TestListener.h:110
#define CPPUNIT_NS_END
Definition: Portability.h:120
#define CPPUNIT_NS_BEGIN
Definition: Portability.h:119
Listener for test progress and result.Implementing the Observer pattern a TestListener may be registe...
Definition: TestListener.h:94
virtual void startTest(Test *)
Called when just before a TestCase is run.
Definition: TestListener.h:100
bool m_lastTestFailed
Definition: BriefTestProgressListener.h:37
#define CPPUNIT_API
Definition: CppUnitApi.h:27

SourceForge Logo hosts this site. Send comments to:
CppUnit Developers