28 virtual std::ostream&
info(std::ostream& os)
const throw();
47 TestSuite(
const string& name, ostream* osptr = 0);
56 const ostream*
getStream()
const {
return m_osptr; }
76 vector<TestCase*> m_tests;
86 m_name(name), m_osptr(osptr) {
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
void run()
Runs all test cases in the suite.
const ostream * getStream() const
Returns output stream.
void addSuite(const TestSuite &)
Adds a test suite to this test suite.
string getName() const
Returns name of test suite.
long getNumPassed() const
Returns number of passed tests.
TestSuite(const string &name, ostream *osptr=0)
void addTest(TestCase *t)
Adds a test case to the suite of tests.
long getNumFailed() const
Returns number of failed tests.
void free()
Deletes the tests.
void setStream(ostream *osptr)
Sets the output stream.