mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-15 03:21:09 +01:00
48 lines
992 B
C++
48 lines
992 B
C++
//
|
|
// TextTestResult.h
|
|
//
|
|
// $Id: //poco/Main/CppUnit/include/CppUnit/TextTestResult.h#7 $
|
|
//
|
|
|
|
|
|
#ifndef CppUnit_TextTestResult_INCLUDED
|
|
#define CppUnit_TextTestResult_INCLUDED
|
|
|
|
|
|
#include "CppUnit/CppUnit.h"
|
|
#include "CppUnit/TestResult.h"
|
|
#include <ostream>
|
|
|
|
|
|
namespace CppUnit {
|
|
|
|
|
|
class CppUnit_API 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);
|
|
|
|
protected:
|
|
std::string shortName(const std::string& testName);
|
|
};
|
|
|
|
|
|
/* insertion operator for easy output */
|
|
inline std::ostream& operator<< (std::ostream& stream, TextTestResult& result)
|
|
{
|
|
result.print(stream);
|
|
return stream;
|
|
}
|
|
|
|
|
|
} // namespace CppUnit
|
|
|
|
|
|
#endif // CppUnit_TextTestResult_INCLUDED
|