CppUnit - The Unit Testing Library

CppUnit project page | FAQ

QtTestRunner.h
Go to the documentation of this file.
1 // //////////////////////////////////////////////////////////////////////////
2 // Header file TestRunner.h for class TestRunner
3 // (c)Copyright 2000, Baptiste Lepilleur.
4 // Created: 2001/09/19
5 // //////////////////////////////////////////////////////////////////////////
6 #ifndef CPPUNIT_QTUI_QTTESTRUNNER_H
7 #define CPPUNIT_QTUI_QTTESTRUNNER_H
8
9 #include <cppunit/portability/CppUnitVector.h>
10 #include "Config.h"
11
12 CPPUNIT_NS_BEGIN
13
14
15 class Test;
16 class TestSuite;
17
18
40 class QTTESTRUNNER_API QtTestRunner
41 {
42 public:
45 QtTestRunner();
46
49 virtual ~QtTestRunner();
50
51 void run( bool autoRun =false );
52
53 void addTest( Test *test );
54
55 private:
57 QtTestRunner( const QtTestRunner &copy );
58
60 void operator =( const QtTestRunner &copy );
61
62 Test *getRootTest();
63
64 private:
65 typedef CppUnitVector<Test *> Tests;
66 Tests *_tests;
67
68 TestSuite *_suite;
69 };
70
71
72 #if CPPUNIT_HAVE_NAMESPACES
73 namespace QtUi
74 {
78 typedef CPPUNIT_NS::QtTestRunner TestRunner;
79 }
80 #endif
81
82
83 CPPUNIT_NS_END
84
85 #endif // CPPUNIT_QTUI_QTTESTRUNNER_H
QtUi
Definition: QtTestRunner.h:73
Test
Base class for all test objects.All test objects should be a subclass of Test. Some test objects...
Definition: Test.h:25
QTTESTRUNNER_API
#define QTTESTRUNNER_API
Definition: Config.h:17
QtTestRunner::_tests
Tests * _tests
Definition: QtTestRunner.h:66
QtTestRunner::Tests
CppUnitVector< Test * > Tests
Definition: QtTestRunner.h:65
CppUnitVector.h
QtTestRunner
QT test runner.Here is an example of usage:
Definition: QtTestRunner.h:40
CPPUNIT_NS_END
#define CPPUNIT_NS_END
Definition: Portability.h:120
CPPUNIT_NS_BEGIN
#define CPPUNIT_NS_BEGIN
Definition: Portability.h:119
Config.h
TestRunner
CPPUNIT_NS::MfcTestRunner TestRunner
MFC test runner (DEPRECATED)
Definition: msvc6/testrunner/TestRunner.h:15
TestSuite
A Composite of Tests.It runs a collection of test cases. Here is an example.
Definition: TestSuite.h:40
QtTestRunner::_suite
TestSuite * _suite
Definition: QtTestRunner.h:68

| Send comments to: CppUnit Developers