CppUnit project page FAQ CppUnit home page

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

CppUnit::RepeatedTest Class Reference

Decorator that runs a test repeatedly. More...

#include <RepeatedTest.h>

Inheritance diagram for CppUnit::RepeatedTest:

CppUnit::TestDecorator CppUnit::Test List of all members.

Public Methods

 RepeatedTest (Test *test, int timesRepeat)
void run (TestResult *result)
 Run the test, collecting results. More...

int countTestCases () const
 Return the number of test cases invoked by run(). More...

std::string toString () const
 Description of the test, for diagnostic output. More...


Private Methods

 RepeatedTest (const RepeatedTest &)
void operator= (const RepeatedTest &)

Private Attributes

const int m_timesRepeat

Detailed Description

Decorator that runs a test repeatedly.

Does not assume ownership of the test it decorates


Constructor & Destructor Documentation

CppUnit::RepeatedTest::RepeatedTest Test   test,
int    timesRepeat
[inline]
 

CppUnit::RepeatedTest::RepeatedTest const RepeatedTest &    [private]
 


Member Function Documentation

int CppUnit::RepeatedTest::countTestCases   const [virtual]
 

Return the number of test cases invoked by run().

The base unit of testing is the class TestCase. This method returns the number of TestCase objects invoked by the run() method.

Reimplemented from CppUnit::TestDecorator.

void CppUnit::RepeatedTest::operator= const RepeatedTest &    [private]
 

void CppUnit::RepeatedTest::run TestResult   result [virtual]
 

Run the test, collecting results.

Reimplemented from CppUnit::TestDecorator.

std::string CppUnit::RepeatedTest::toString   const [virtual]
 

Description of the test, for diagnostic output.

The test description will typically include the test name, but may have additional description. For example, a test suite named complex_add may be described as suite complex_add.

Reimplemented from CppUnit::TestDecorator.


Member Data Documentation

const int CppUnit::RepeatedTest::m_timesRepeat [private]
 


The documentation for this class was generated from the following files:
SourceForge Logo hosts this site. Send comments to:
CppUnit Developers