CppUnit project page FAQ

TestListener.h
Go to the documentation of this file.
1 #ifndef CPPUNIT_TESTLISTENER_H // -*- C++ -*-
2 #define CPPUNIT_TESTLISTENER_H
3 
4 #include <cppunit/Portability.h>
5 
6 
8 
9 
10 class Exception;
11 class Test;
12 class TestFailure;
13 class TestResult;
14 
15 
95 {
96 public:
97  virtual ~TestListener() {}
98 
100  virtual void startTest( Test * /*test*/ ) {}
101 
107  virtual void addFailure( const TestFailure & /*failure*/ ) {}
108 
110  virtual void endTest( Test * /*test*/ ) {}
111 
114  virtual void startSuite( Test * /*suite*/ ) {}
115 
118  virtual void endSuite( Test * /*suite*/ ) {}
119 
128  virtual void startTestRun( Test * /*test*/,
129  TestResult * /*eventManager*/ ) {}
130 
139  virtual void endTestRun( Test * /*test*/,
140  TestResult * /*eventManager*/ ) {}
141 };
142 
143 
145 
146 #endif // CPPUNIT_TESTLISTENER_H
147 
148 

Send comments to:
CppUnit Developers