CppUnit project page FAQ

cppunit/TestRunner.h
Go to the documentation of this file.
1 #ifndef CPPUNIT_TESTRUNNER_H
2 #define CPPUNIT_TESTRUNNER_H
3 
4 #include <cppunit/TestSuite.h>
5 #include <string>
6 
8 
9 
10 class Test;
11 class TestResult;
12 
13 
73 {
74 public:
77  TestRunner( );
78 
80  virtual ~TestRunner();
81 
85  virtual void addTest( Test *test );
86 
94  virtual void run( TestResult &controller,
95  const std::string &testPath = "" );
96 
97 protected:
101  {
102  public:
103  WrappingSuite( const std::string &name = "All Tests" );
104 
105  int getChildTestCount() const;
106 
107  std::string getName() const;
108 
109  void run( TestResult *result );
110 
111  protected:
112  Test *doGetChildTestAt( int index ) const;
113 
114  bool hasOnlyOneTest() const;
115 
116  Test *getUniqueChildTest() const;
117  };
118 
119 protected:
121 
122 private:
124  TestRunner( const TestRunner &copy );
125 
127  void operator =( const TestRunner &copy );
128 
129 private:
130 };
131 
132 
134 
135 #endif // CPPUNIT_TESTRUNNER_H

Send comments to:
CppUnit Developers