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 
Exceptions thrown by failed assertions.Exception is an exception that serves descriptive strings thro...
Definition: Exception.h:19
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
Manages TestListener.A single instance of this class is used when running the test. It is usually created by the test runner (TestRunner).
Definition: TestResult.h:47
Holds printable test result (DEPRECATED).deprecated Use class TextTestProgressListener and TextOutput...
Definition: TextTestResult.h:20
CPPUNIT_NS_BEGIN typedef std::ostream OStream
Definition: Stream.h:330
Base class for all test objects.All test objects should be a subclass of Test. Some test objects...
Definition: Test.h:25
Represents a source line location.Used to capture the failure location in assertion.
Definition: SourceLine.h:30
Record of a failed Test execution.A TestFailure collects a failed test together with the caught excep...
Definition: TestFailure.h:24
CPPUNIT_API OStream & operator<<(OStream &stream, TextTestResult &result)
insertion operator for easy output
Definition: TextTestResult.cpp:43
#define CPPUNIT_NS_END
Definition: Portability.h:106
Collects test result.A TestResultCollector is a TestListener which collects the results of executing ...
Definition: TestResultCollector.h:31
#define CPPUNIT_NS_BEGIN
Definition: Portability.h:105
virtual void startTest(Test *test)
Informs TestListener that a test will be started.
Definition: TestResult.cpp:70
#define CPPUNIT_API
Definition: CppUnitApi.h:27

Send comments to:
CppUnit Developers