TestSuite Class Reference

A suite groups a set of tests together and makes them available as one test. More...

#include <unittest_decls.h>

Inheritance diagram for TestSuite:

BaseTest List of all members.

Public Member Functions

 TestSuite (const std::string &n)
 TestSuite constructor.
 TestSuite (const TestSuite &o)
 Copy constructor.
TestSuiteclone () const
 Virtual copy constructor.
void addtest (BaseTest *test)
 Adds a given test to this suite.
void run (BaseGatherer &g)
 Runs the test reporting results to the provided gatherer.

Detailed Description

A suite groups a set of tests together and makes them available as one test.


Constructor & Destructor Documentation

TestSuite::TestSuite ( const std::string &  n  )  [inline]

TestSuite constructor.

Parameters:
n is the name of the suite

TestSuite::TestSuite ( const TestSuite o  )  [inline]

Copy constructor.

This is a deep copy.

Parameters:
o is the TestSuite to be copied


Member Function Documentation

TestSuite * TestSuite::clone (  )  const [virtual]

Virtual copy constructor.

This might be quite memory intensive as it actually copies deep.

Returns:
an copy of this

Implements BaseTest.

void TestSuite::addtest ( BaseTest test  ) 

Adds a given test to this suite.

Parameters:
test is the test to add

void TestSuite::run ( BaseGatherer g  )  [virtual]

Runs the test reporting results to the provided gatherer.

Parameters:
g is the gatherer results are reported to

Implements BaseTest.


The documentation for this class was generated from the following files:
Generated on Sat Feb 7 01:26:51 2009 by  doxygen 1.5.1