CppUnit project page FAQ CppUnit home page

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

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 protected:
00082   virtual void wait( bool doWait );
00083   virtual void printResult( bool doPrintResult );
00084 
00085   TestResultCollector *m_result;
00086   TestResult *m_eventManager;
00087   Outputter *m_outputter;
00088 };
00089 
00090 
00091 CPPUNIT_NS_END
00092 
00093 #endif  // CPPUNIT_UI_TEXT_TEXTTESTRUNNER_H

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