source: trunk/contrib/cppunit-1.12.2/include/cppunit/TestComposite.h @ 876

Last change on this file since 876 was 876, checked in by sam, 9 years ago

contrib: add a precompiled Win32 version of CppUnit and update build system
accordingly.

File size: 923 bytes
Line 
1#ifndef CPPUNIT_TESTCOMPSITE_H    // -*- C++ -*-
2#define CPPUNIT_TESTCOMPSITE_H
3
4#include <cppunit/Test.h>
5#include <string>
6
7CPPUNIT_NS_BEGIN
8
9
10/*! \brief A Composite of Tests.
11 *
12 * Base class for all test composites. Subclass this class if you need to implement
13 * a custom TestSuite.
14 *
15 * \see Test, TestSuite.
16 */
17class CPPUNIT_API TestComposite : public Test
18{
19public:
20  TestComposite( const std::string &name = "" );
21
22  ~TestComposite();
23
24  void run( TestResult *result );
25
26  int countTestCases() const;
27 
28  std::string getName() const;
29
30private:
31  TestComposite( const TestComposite &other );
32  TestComposite &operator =( const TestComposite &other );
33
34  virtual void doStartSuite( TestResult *controller );
35  virtual void doRunChildTests( TestResult *controller );
36  virtual void doEndSuite( TestResult *controller );
37
38private:
39  const std::string m_name;
40};
41
42
43CPPUNIT_NS_END
44
45#endif // CPPUNIT_TESTCOMPSITE_H
Note: See TracBrowser for help on using the repository browser.