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

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:

List of all members.

Public Methods

Static Public Methods

Detailed Documentation

Constructor & Destructor Documentation

utst::TestLog::~TestLog  
 

Basic destructor

Member Function Documentation

TestLog& utst::TestLog::instance   [static]
 

std::ostream& utst::TestLog::msgStream   [static]
 

Return a stream to which a user can write messages or other optional information which might help track down why a test is failing.

void utst::TestLog::setLogLevel const TestLog::LogLevel::type   logLevel
 

Set the current log level for the test log

TestLog::LogLevel::type utst::TestLog::getLogLevel   const
 

Get the current log level for the test log

void utst::TestLog::setLogStream std::ostream &    os
 

Set the current log output stream. The test log saves a pointer to this stream so the caller is responsible for keeping the output stream around for the lifetime of the program.

void utst::TestLog::beginTestSuite const std::string &    testSuiteName
 

Output log info to denote begining of test suite

void utst::TestLog::endTestSuite  
 

Output log info to denote end of test suite

void utst::TestLog::beginTestCase const std::string &    testCaseName
 

Output log info to denote begining of test case

void utst::TestLog::endTestCase  
 

Output log info to denote end of test case

std::ostream& utst::TestLog::logTestResult bool    result,
const std::string &    fileNameStr,
int    lineNum
 

Returns a log output stream for test results. The boolean result argument should be whether or not the test passed and the filename/linenum information should indicate where the test was located.

std::ostream& utst::TestLog::getMsgStream  
 



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