CppUnit project page FAQ

TextTestResult.h
Go to the documentation of this file.
1 #ifndef CPPUNIT_TEXTTESTRESULT_H
2 #define CPPUNIT_TEXTTESTRESULT_H
3 
4 #include <cppunit/TestResult.h>
7 
9 
10 
11 class SourceLine;
12 class Exception;
13 class Test;
14 
21  public TestResultCollector
22 {
23 public:
25 
26  virtual void addFailure( const TestFailure &failure );
27  virtual void startTest( Test *test );
28  virtual void print( OStream &stream );
29 
31 };
32 
35  TextTestResult &result );
36 
38 
39 #endif // CPPUNIT_TEXTTESTRESULT_H
40 
41 
CPPUNIT_API
#define CPPUNIT_API
Definition: CppUnitApi.h:27
TestResult.h
SourceLine
Represents a source line location.
Definition: SourceLine.h:30
TestFailure
Record of a failed Test execution.
Definition: TestFailure.h:24
TestResultCollector
Collects test result.
Definition: TestResultCollector.h:31
OStream
CPPUNIT_NS_BEGIN typedef std::ostream OStream
Definition: Stream.h:330
TestResultCollector.h
Exception
Exceptions thrown by failed assertions.
Definition: Exception.h:19
TestResult::addFailure
virtual void addFailure(Test *test, Exception *e)
Adds a failure to the list of failures. The passed in exception caused the failure.
Definition: TestResult.cpp:51
TestResult::startTest
virtual void startTest(Test *test)
Informs TestListener that a test will be started.
Definition: TestResult.cpp:70
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
TextTestResult
Holds printable test result (DEPRECATED).
Definition: TextTestResult.h:20
TestResult
Manages TestListener.
Definition: TestResult.h:47
operator<<
CPPUNIT_API OStream & operator<<(OStream &stream, TextTestResult &result)
insertion operator for easy output
Definition: TextTestResult.cpp:43
Stream.h

Send comments to:
CppUnit Developers