utst::TestLog Class Reference
This class wraps an output stream and provides an interface for tests to write results. Usually a user does not need to access this class directly but instead uses the macros provided with utst::TestCase. The log level sets how verbose the test output is.
Acceptable log level values are listed below:
- errors : Only output errors
- minimal : Output errors as well as a list of test case names
- moderate : Output errors, test case names, and note/log stream output
- verbose : Output everything
Public Methods
- ~TestLog ()
- setLogLevel (const TestLog::LogLevel::type &logLevel)
- getLogLevel () const
- setLogStream (std::ostream &os)
- beginTestSuite (const std::string &testSuiteName)
- endTestSuite ()
- beginTestCase (const std::string &testCaseName)
- endTestCase ()
- logTestResult (bool result, const std::string &fileNameStr, int lineNum)
- getMsgStream ()