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

TestRunner.h

Go to the documentation of this file.
00001 // //////////////////////////////////////////////////////////////////////////
00002 // Header file TestRunner.h for class TestRunner
00003 // (c)Copyright 2000, Baptiste Lepilleur.
00004 // Created: 2001/09/19
00005 // //////////////////////////////////////////////////////////////////////////
00006 #ifndef CPPUNIT_QTUI_TESTRUNNER_H
00007 #define CPPUNIT_QTUI_TESTRUNNER_H
00008 
00009 #include <vector>
00010 #include "Config.h"
00011 
00012 namespace CppUnit
00013 {
00014   class Test;
00015   class TestSuite;
00016 
00017   namespace QtUi
00018   {
00019 
00041 class QTTESTRUNNER_API TestRunner
00042 {
00043 public:
00046   TestRunner();
00047 
00050   virtual ~TestRunner();
00051 
00052   void run( bool autoRun =false );
00053 
00054   void addTest( CppUnit::Test *test );
00055 
00056 private:
00058   TestRunner( const TestRunner &copy );
00059 
00061   void operator =( const TestRunner &copy );
00062 
00063   Test *getRootTest();
00064 
00065 private:
00066   typedef std::vector<Test *> Tests;
00067   Tests *_tests;
00068 
00069   TestSuite *_suite;
00070 };
00071 
00072 
00073 
00074 // Inlines methods for TestRunner:
00075 // -------------------------------
00076 
00077 
00078   }  // namespace QtUi
00079 }  // namespace CppUnit
00080 
00081 #endif  // CPPUNIT_QTUI_TESTRUNNER_H

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