C++ Extensions (cppx) Documentation Internal Version
Main | Namespaces | Classes | NamespaceMembers | ClassMembers | Files

utst::TestSuite Class Reference

A test suite is a collection of TestCase objects. A user can add test cases to the suite and then run all of the test cases or just a specific one. Usually one feeds the arguments from the command line into the runFromCmdLine() member function to allow a user to specify regression test options at run time. See utst namespace documenation for more information.

List of all members.

Public Methods

Detailed Documentation

Constructor & Destructor Documentation

utst::TestSuite::TestSuite const std::string &    name
 

Default constructor

utst::TestSuite::~TestSuite  
 

Default destructor

Member Function Documentation

std::string utst::TestSuite::getName   const
 

Return the name of this test suite

void utst::TestSuite::addTestCase const TestCase   testCase
 

Add a new test case to the suite. The test suite will make a clone of the test case.

void utst::TestSuite::addExample const TestCase   testCase
 

Add a new example to the suite. The test suite will make a clone of the examples.

void utst::TestSuite::runAllTests   const
 

Run all the test cases in this suite and output results to the TestLog

void utst::TestSuite::runOneTest const std::string &    testCaseName const
 

Run one test case with the given name and output the results to the TestLog. If a test case with the given name does not exist then nothing happens.

void utst::TestSuite::runAllExamples   const
 

Run all the examples in this suite and output results to the TestLog

void utst::TestSuite::runOneExample const std::string &    testCaseName const
 

Run one example with the given name and output the results to the TestLog. If an example with the given name does not exist then nothing happens.

void utst::TestSuite::runFromCmdLine int    argc,
char *    argv[]
const
 

Run the tests in this test suite usin the options specified on the command line. See overview documentation for this class for info on acceptable command line options.



The documentation for this class was generated from the following file:
Generated on Mon Aug 15 21:43:10 2005 by Doxygen 1.2.13-20020210 written by Dimitri van Heesch © 1997-2002