summaryrefslogtreecommitdiff
path: root/include/cppunit/TextTestResult.h
blob: 8c41055a9aec4b76db469437f408a5f5de6a42e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef CPPUNIT_TEXTTESTRESULT_H
#define CPPUNIT_TEXTTESTRESULT_H

#include <iosfwd>
#include <cppunit/TestResult.h>

namespace CppUnit {

  class Exception;
  class Test;

  class TextTestResult : public TestResult 
  {
    public:
      virtual void        addError      (Test *test, Exception *e);
      virtual void        addFailure    (Test *test, Exception *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 */
  std::ostream& operator<< (std::ostream& stream, TextTestResult& result);

} // namespace CppUnit

#endif // CPPUNIT_TEXTTESTRESULT_H