|
|
TestLog |
| Inherits from: | |
| Declared In: |
TestObserver that logs the execution of a test run as text.
A TestLog is a TestObserver that has a std::ostream on which it logs the executon of a test run as text. It writes a line of text for test start, test stop, test failure, test suite start, and test suite stop. When it writes a line of text for test failure, it outputs that line in a compiler-like format so the failure information can be easily parsed.
Logs that the input Test failed execution.
Logs that the input Test started execution.
Logs that the input Test completed execution.
Constructor for the TestLog class, takes the stream to log to.
Logs that the input TestSuite started execution.
Logs that the input TestSuite completed execution.
Destructor for the TestLog class.
testDidFail |
Logs that the input Test failed execution.
testThe Test that failed execution.
failureInformation about why the Test failed.
Logs that the input Test failed execution, and includes information about the failure. This information is formatted in a compiler-like format including the source code file name and line number, followed by an informative message.
testDidStart |
Logs that the input Test started execution.
testThe Test that started execution.
Logs that the input Test started execution.
testDidStop |
Logs that the input Test completed execution.
testThe Test that completed execution.
Logs that the input Test completed execution. Tests either complete or fail, they don't do both.
TestLog |
Constructor for the TestLog class, takes the stream to log to.
public
explicit TestLog( std::ostream& stream);
streamThe stream to log test execution to. Pass std::cerr to log to standard error.
Constructor for the TestLog class. Its parameter is the stream to log test execution to.
testSuiteDidStart |
Logs that the input TestSuite started execution.
testSuiteThe TestSuite that started execution.
Logs that the input TestSuite started execution.
testSuiteDidStop |
Logs that the input TestSuite completed execution.
testThe TestSuite that completed execution.
Logs that the input TestSuite completed execution. TestSuites always complete, regardless of whether any of their compenent tests fail.
~TestLog |
Destructor for the TestLog class.
public
virtual ~TestLog();
Destructor for the TestLog class.
Last Updated: 2009-08-12