CppUnit project page FAQ CppUnit home page

TextTestRunner.h
Go to the documentation of this file.
00001 #ifndef CPPUNIT_UI_TEXT_TEXTTESTRUNNER_H
00002 #define CPPUNIT_UI_TEXT_TEXTTESTRUNNER_H
00003 
00004 
00005 #include <cppunit/Portability.h>
00006 #include <string>
00007 #include <cppunit/TestRunner.h>
00008 
00009 CPPUNIT_NS_BEGIN
00010 
00011 
00012 class Outputter;
00013 class Test;
00014 class TestSuite;
00015 class TextOutputter;
00016 class TestResult;
00017 class TestResultCollector;
00018 
00019 
00020 
00063 class CPPUNIT_API TextTestRunner : public CPPUNIT_NS::TestRunner
00064 {
00065 public:
00066   TextTestRunner( Outputter *outputter =NULL );
00067 
00068   virtual ~TextTestRunner();
00069 
00070   bool run( std::string testPath ="",
00071             bool doWait = false,
00072             bool doPrintResult = true,
00073             bool doPrintProgress = true );
00074 
00075   void setOutputter( Outputter *outputter );
00076 
00077   TestResultCollector &result() const;
00078 
00079   TestResult &eventManager() const;
00080 
00081 public: // overridden from TestRunner (to avoid hidden virtual function warning)
00082   virtual void run( TestResult &controller,
00083                     const std::string &testPath = "" );
00084 
00085 protected:
00086   virtual void wait( bool doWait );
00087   virtual void printResult( bool doPrintResult );
00088 
00089   TestResultCollector *m_result;
00090   TestResult *m_eventManager;
00091   Outputter *m_outputter;
00092 };
00093 
00094 
00095 CPPUNIT_NS_END
00096 
00097 #endif  // CPPUNIT_UI_TEXT_TEXTTESTRUNNER_H

SourceForge Logo hosts this site. Send comments to:
CppUnit Developers