mirror of
https://github.com/jezhiggins/arabica
synced 2024-12-28 22:23:21 +01:00
31 lines
803 B
C
31 lines
803 B
C
|
|
||
|
#ifndef CPPUNIT_TEXTTESTRESULT_H
|
||
|
#define CPPUNIT_TEXTTESTRESULT_H
|
||
|
|
||
|
#include <iostream>
|
||
|
#include "../framework/TestResult.h"
|
||
|
|
||
|
|
||
|
class TextTestResult : public TestResult
|
||
|
{
|
||
|
public:
|
||
|
virtual void addError (Test *test, CppUnitException *e);
|
||
|
virtual void addFailure (Test *test, CppUnitException *e);
|
||
|
virtual void startTest (Test *test);
|
||
|
virtual void print (std::ostream& stream);
|
||
|
virtual void printErrors (std::ostream& stream);
|
||
|
virtual void printFailures (std::ostream& stream);
|
||
|
virtual void printHeader (std::ostream& stream);
|
||
|
|
||
|
};
|
||
|
|
||
|
|
||
|
/* insertion operator for easy output */
|
||
|
inline std::ostream& operator<< (std::ostream& stream, TextTestResult& result)
|
||
|
{ result.print (stream); return stream; }
|
||
|
|
||
|
|
||
|
#endif
|
||
|
|
||
|
|