00001 #ifndef CPPUNIT_TEXTTESTRUNNER_H
00002 #define CPPUNIT_TEXTTESTRUNNER_H
00003
00004 #include <string>
00005 #include <vector>
00006
00007 namespace CppUnit {
00008
00009 class Test;
00010 class TestSuite;
00011
00030 class TextTestRunner
00031 {
00032 public:
00033 TextTestRunner();
00034 virtual ~TextTestRunner();
00035
00036 void run( std::string testName ="",
00037 bool wait = false );
00038
00039 void addTest( Test *test );
00040
00041 protected:
00042 void runTest( Test *test );
00043 void runTestByName( std::string testName );
00044 void wait( bool doWait );
00045
00046 Test *findTestByName( std::string name ) const;
00047 TestSuite *m_suite;
00048 };
00049
00050 }
00051
00052 #endif // CPPUNIT_TEXTTESTRUNNER_H