CppUnit project page FAQ CppUnit home page

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>
6 
8 
9 
10 class Test;
11 class TestResult;
12 
13 
19 {
20 public:
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 
32 private:
33  RepeatedTest( const RepeatedTest & );
34  void operator=( const RepeatedTest & );
35 
36  const int m_timesRepeat;
37 };
38 
39 
41 
42 
43 #endif // CPPUNIT_EXTENSIONS_REPEATEDTEST_H
RepeatedTest(Test *test, int timesRepeat)
Definition: RepeatedTest.h:21
Manages TestListener.A single instance of this class is used when running the test. It is usually created by the test runner (TestRunner).
Definition: TestResult.h:51
void run(TestResult *result)
Run the test, collecting results.
Definition: TestDecorator.cpp:26
Base class for all test objects.All test objects should be a subclass of Test. Some test objects...
Definition: Test.h:25
const int m_timesRepeat
Definition: RepeatedTest.h:36
#define CPPUNIT_NS_END
Definition: Portability.h:120
#define CPPUNIT_NS_BEGIN
Definition: Portability.h:119
void operator=(const TestDecorator &)
int countTestCases() const
Return the number of test cases invoked by run().
Definition: TestDecorator.cpp:19
Decorator for Tests.
Definition: TestDecorator.h:21
Decorator that runs a test repeatedly.
Definition: RepeatedTest.h:18
#define CPPUNIT_API
Definition: CppUnitApi.h:27

SourceForge Logo hosts this site. Send comments to:
CppUnit Developers