CppUnit - The Unit Testing Library

CppUnit project page | FAQ

TestComposite.h
Go to the documentation of this file.
1#ifndef CPPUNIT_TESTCOMPSITE_H // -*- C++ -*-
2#define CPPUNIT_TESTCOMPSITE_H
3
4#include <cppunit/Test.h>
5#include <string>
6
7 CPPUNIT_NS_BEGIN
8
9
17 class 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
43 CPPUNIT_NS_END
44
45#endif // CPPUNIT_TESTCOMPSITE_H
CPPUNIT_API
#define CPPUNIT_API
Definition CppUnitApi.h:27
CPPUNIT_NS_END
#define CPPUNIT_NS_END
Definition Portability.h:106
CPPUNIT_NS_BEGIN
#define CPPUNIT_NS_BEGIN
Definition Portability.h:105
Test.h
TestComposite::m_name
const std::string m_name
Definition TestComposite.h:39
TestComposite::TestComposite
TestComposite(const TestComposite &other)
TestComposite::doStartSuite
virtual void doStartSuite(TestResult *controller)
Definition TestComposite.cpp:49
TestComposite::doEndSuite
virtual void doEndSuite(TestResult *controller)
Definition TestComposite.cpp:70
TestComposite::TestComposite
TestComposite(const std::string &name="")
Definition TestComposite.cpp:8
TestComposite::doRunChildTests
virtual void doRunChildTests(TestResult *controller)
Definition TestComposite.cpp:56
Test
Base class for all test objects.
Definition Test.h:26
Test::getName
virtual std::string getName() const =0
Returns the test name.
Test::run
virtual void run(TestResult *result)=0
Run the test, collecting results.
Test::countTestCases
virtual int countTestCases() const =0
Return the number of test cases invoked by run().
TestResult
Manages TestListener.
Definition TestResult.h:48

| Send comments to: CppUnit Developers