1 #ifndef CPPUNIT_TESTCOMPSITE_H // -*- C++ -*-
2 #define CPPUNIT_TESTCOMPSITE_H
4 #include <cppunit/Test.h>
10 /*! \brief A Composite of Tests.
12 * Base class for all test composites. Subclass this class if you need to implement
15 * \see Test, TestSuite.
17 class CPPUNIT_API TestComposite : public Test
20 TestComposite( const std::string &name = "" );
24 void run( TestResult *result );
26 int countTestCases() const;
28 std::string getName() const;
31 TestComposite( const TestComposite &other );
32 TestComposite &operator =( const TestComposite &other );
34 virtual void doStartSuite( TestResult *controller );
35 virtual void doRunChildTests( TestResult *controller );
36 virtual void doEndSuite( TestResult *controller );
39 const std::string m_name;
45 #endif // CPPUNIT_TESTCOMPSITE_H