CppUnit - The Unit Testing Library

CppUnit project page | FAQ

RepeatedTest.h
Go to the documentation of this file.
1#ifndef CPPUNIT_EXTENSIONS_REPEATEDTEST_H
2#define CPPUNIT_EXTENSIONS_REPEATEDTEST_H
3
4#include <cppunit/Portability.h>
5#include <cppunit/extensions/TestDecorator.h>
6
7 CPPUNIT_NS_BEGIN
8
9
10class Test;
11class TestResult;
12
13
18 class CPPUNIT_API RepeatedTest : public TestDecorator
19{
20public:
21 RepeatedTest( Test *test,
22 int timesRepeat ) :
23 TestDecorator( test ),
24 m_timesRepeat(timesRepeat)
25 {
26 }
27
28 void run( TestResult *result );
29
30 int countTestCases() const;
31
32private:
33 RepeatedTest( const RepeatedTest & );
34 void operator=( const RepeatedTest & );
35
36 const int m_timesRepeat;
37};
38
39
40 CPPUNIT_NS_END
41
42
43#endif // CPPUNIT_EXTENSIONS_REPEATEDTEST_H
CPPUNIT_API
#define CPPUNIT_API
Definition CppUnitApi.h:27
Portability.h
CPPUNIT_NS_END
#define CPPUNIT_NS_END
Definition Portability.h:106
CPPUNIT_NS_BEGIN
#define CPPUNIT_NS_BEGIN
Definition Portability.h:105
TestDecorator.h
RepeatedTest
Decorator that runs a test repeatedly.
Definition RepeatedTest.h:19
RepeatedTest::m_timesRepeat
const int m_timesRepeat
Definition RepeatedTest.h:36
RepeatedTest::operator=
void operator=(const RepeatedTest &)
RepeatedTest::RepeatedTest
RepeatedTest(Test *test, int timesRepeat)
Definition RepeatedTest.h:21
RepeatedTest::RepeatedTest
RepeatedTest(const RepeatedTest &)
TestDecorator
Decorator for Tests.
Definition TestDecorator.h:22
TestDecorator::run
void run(TestResult *result)
Run the test, collecting results.
Definition TestDecorator.cpp:26
TestDecorator::countTestCases
int countTestCases() const
Return the number of test cases invoked by run().
Definition TestDecorator.cpp:19
Test
Base class for all test objects.
Definition Test.h:26
TestResult
Manages TestListener.
Definition TestResult.h:48

| Send comments to: CppUnit Developers