CppUnit project page FAQ

TextOutputter.h
Go to the documentation of this file.
1 #ifndef CPPUNIT_TEXTOUTPUTTER_H
2 #define CPPUNIT_TEXTOUTPUTTER_H
3 
4 #include <cppunit/Portability.h>
5 #include <cppunit/Outputter.h>
7 
9 
10 
11 class Exception;
12 class SourceLine;
14 class TestFailure;
15 
16 
21 {
22 public:
24  OStream &stream );
25 
27  virtual ~TextOutputter();
28 
29  void write();
30  virtual void printFailures();
31  virtual void printHeader();
32 
33  virtual void printFailure( TestFailure *failure,
34  int failureNumber );
35  virtual void printFailureListMark( int failureNumber );
36  virtual void printFailureTestName( TestFailure *failure );
37  virtual void printFailureType( TestFailure *failure );
38  virtual void printFailureLocation( SourceLine sourceLine );
39  virtual void printFailureDetail( Exception *thrownException );
40  virtual void printFailureWarning();
41  virtual void printStatistics();
42 
43 protected:
46 
47 private:
49  TextOutputter( const TextOutputter &copy );
50 
52  void operator =( const TextOutputter &copy );
53 };
54 
55 
56 
58 
59 #endif // CPPUNIT_TEXTOUTPUTTER_H
Exceptions thrown by failed assertions.Exception is an exception that serves descriptive strings thro...
Definition: Exception.h:19
TestResultCollector * m_result
Definition: TextOutputter.h:44
CPPUNIT_NS_BEGIN typedef std::ostream OStream
Definition: Stream.h:330
Represents a source line location.Used to capture the failure location in assertion.
Definition: SourceLine.h:30
Prints a TestResultCollector to a text stream.
Definition: TextOutputter.h:20
Record of a failed Test execution.A TestFailure collects a failed test together with the caught excep...
Definition: TestFailure.h:24
virtual void write()=0
#define CPPUNIT_NS_END
Definition: Portability.h:120
Collects test result.A TestResultCollector is a TestListener which collects the results of executing ...
Definition: TestResultCollector.h:36
#define CPPUNIT_NS_BEGIN
Definition: Portability.h:119
Abstract outputter to print test result summary.
Definition: Outputter.h:13
OStream & m_stream
Definition: TextOutputter.h:45
#define CPPUNIT_API
Definition: CppUnitApi.h:27

Send comments to:
CppUnit Developers