#include <TestSuite.hh>
Inheritance diagram for ccunit::TestSuite:
Public Methods | |
TestSuite (const string &name="(no name)", TestSuiteFormatterPtr formatter=TestSuiteFormatterPtr(new TestSuiteFormatter())) | |
Create a new test suite. More... | |
virtual | ~TestSuite () |
virtual void | report (ostream &ostr) |
Print a report on an output stream. More... | |
virtual void | Add (TestComponentPtr child) |
add a component to a composite; must be heap allocated! More... | |
virtual void | Remove (TestComponentPtr child) |
remove a component from a composite. More... | |
virtual bool | CheckRecursion (TestComponent *target) const |
return true for attempts to add self to composite. More... | |
virtual void | setFormatter (TestSuiteFormatterPtr fmt_p) |
set the output formatter. More... | |
Protected Methods | |
virtual void | run_tests () |
run all the tests. More... | |
Private Types | |
typedef list< TestComponentPtr > | TEST_LIST_t |
Type of the tests container. More... | |
Private Methods | |
virtual void | reset () |
To reset the test. More... | |
TestSuite (const TestSuite &) | |
TestSuite & | operator= (const TestSuite &) |
Private Attributes | |
TEST_LIST_t | m_tests |
The tests to be run. More... | |
TestSuiteFormatterPtr | mp_formatter |
Output formatter (to support different report types). More... |
#
The TestSuite is a way for tests to be run and tabulated as a unified group.
Revision 1.1.1.1 2002/03/28 20:16:56 canislupus
Revision 1.1 2001/04/12 17:47:14 dhawkins Initial checkin.
\end{verbatim}
Definition at line 44 of file TestSuite.hh.
|
Type of the tests container.
Definition at line 76 of file TestSuite.hh. |
|
Create a new test suite.
Definition at line 20 of file TestSuite.cc. References ccunit::TestSuiteFormatterPtr. |
|
Definition at line 53 of file TestSuite.hh. |
|
|
|
add a component to a composite; must be heap allocated!
Reimplemented from ccunit::TestComponent. Reimplemented in ccunit::AutoTestSuite. Definition at line 87 of file TestSuite.cc. References m_tests, and ccunit::TestComponentPtr. Referenced by main. |
|
return true for attempts to add self to composite.
Reimplemented from ccunit::TestComponent. Definition at line 117 of file TestSuite.cc. References m_tests. |
|
|
|
remove a component from a composite.
Reimplemented from ccunit::TestComponent. Definition at line 110 of file TestSuite.cc. References m_tests, and ccunit::TestComponentPtr. |
|
Print a report on an output stream.
Implements ccunit::TestComponent. Definition at line 45 of file TestSuite.cc. References ccunit::TestComponent::checkRun, m_tests, and mp_formatter. |
|
To reset the test.
Reimplemented from ccunit::TestComponent. Definition at line 73 of file TestSuite.cc. References m_tests. Referenced by run_tests. |
|
run all the tests.
Implements ccunit::TestComponent. Definition at line 27 of file TestSuite.cc. References ccunit::TestComponent::m_hasRun, ccunit::TestComponent::m_nFail, ccunit::TestComponent::m_nPass, m_tests, and reset. |
|
set the output formatter.
Definition at line 67 of file TestSuite.cc. References mp_formatter, and ccunit::TestSuiteFormatterPtr. Referenced by main. |
|
The tests to be run.
Definition at line 79 of file TestSuite.hh. Referenced by Add, CheckRecursion, Remove, report, reset, and run_tests. |
|
Output formatter (to support different report types).
Definition at line 89 of file TestSuite.hh. Referenced by report, and setFormatter. |