CppUnit project page FAQ

ui/text/TextTestRunner.h
Go to the documentation of this file.
1 #ifndef CPPUNIT_UI_TEXT_TEXTTESTRUNNER_H
2 #define CPPUNIT_UI_TEXT_TEXTTESTRUNNER_H
3 
4 
5 #include <cppunit/Portability.h>
6 #include <string>
7 #include <cppunit/TestRunner.h>
8 
10 
11 
12 class Outputter;
13 class Test;
14 class TestSuite;
15 class TextOutputter;
16 class TestResult;
18 
19 
20 
64 {
65 public:
66  TextTestRunner( Outputter *outputter =NULL );
67 
68  virtual ~TextTestRunner();
69 
70  bool run( std::string testPath ="",
71  bool doWait = false,
72  bool doPrintResult = true,
73  bool doPrintProgress = true );
74 
75  void setOutputter( Outputter *outputter );
76 
77  TestResultCollector &result() const;
78 
79  TestResult &eventManager() const;
80 
81 public: // overridden from TestRunner (to avoid hidden virtual function warning)
82  virtual void run( TestResult &controller,
83  const std::string &testPath = "" );
84 
85 protected:
86  virtual void wait( bool doWait );
87  virtual void printResult( bool doPrintResult );
88 
92 };
93 
94 
96 
97 #endif // CPPUNIT_UI_TEXT_TEXTTESTRUNNER_H

Send comments to:
CppUnit Developers