CppUnit project page | FAQ | CppUnit home page

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

QtTestRunner.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_QTTESTRUNNER_H
    00007 #define CPPUNIT_QTUI_QTTESTRUNNER_H
    00008
    00009 #include <cppunit/portability/CppUnitVector.h>
    00010 #include "Config.h"
    00011
    00012 CPPUNIT_NS_BEGIN
    00013
    00014
    00015   class Test;
    00016   class TestSuite;
    00017
    00018
    00040 class QTTESTRUNNER_API QtTestRunner
    00041 {
    00042 public:
    00045   QtTestRunner();
    00046
    00049   virtual ~QtTestRunner();
    00050
    00051   void run( bool autoRun =false );
    00052
    00053   void addTest( Test *test );
    00054
    00055 private:
    00057   QtTestRunner( const QtTestRunner &copy );
    00058
    00060   void operator =( const QtTestRunner &copy );
    00061
    00062   Test *getRootTest();
    00063
    00064 private:
    00065   typedef CppUnitVector<Test *> Tests;
    00066   Tests *_tests;
    00067
    00068   TestSuite *_suite;
    00069 };
    00070
    00071
    00072 #if CPPUNIT_HAVE_NAMESPACES
    00073   namespace QtUi
    00074   {
    00078     typedef CPPUNIT_NS::QtTestRunner TestRunner;
    00079   }
    00080 #endif
    00081
    00082
    00083 CPPUNIT_NS_END
    00084
    00085 #endif  // CPPUNIT_QTUI_QTTESTRUNNER_H

| hosts this site. |  | Send comments to: CppUnit Developers