Go to the documentation of this file.
28 virtual std::ostream&
info(std::ostream& os)
const throw();
47 TestSuite(
const string& name, ostream* osptr = 0);
86 m_name(name), m_osptr(osptr) {
void run()
Runs all test cases in the suite.
TestSuite(const string &name, ostream *osptr=0)
Constructor.
TestSuite & operator=(const TestSuite &)
Disallowed.
void addTest(TestCase *t)
Adds a test case to the suite of tests.
const ostream * getStream() const
Returns output stream.
long report() const
Prints a report on the number of passed and failed tests in the whole suite to the output stream.
void free()
Deletes the tests.
string getName() const
Returns name of test suite.
vector< TestCase * > m_tests
TestSuiteError(const std::string &error)
TestSuite(const TestSuite &)
Disallowed.
Exception class to express a missing feature.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
long getNumFailed() const
Returns number of failed tests.
long getNumPassed() const
Returns number of passed tests.
void setStream(ostream *osptr)
Sets the output stream.
void addSuite(const TestSuite &)
Adds a test suite to this test suite.