unittest::TestReport Class Reference

#include <Assertion.hpp>

List of all members.


Detailed Description

A TestReport object is used to record the test results.

It outputs the report to the console, unless it is set in silent mode.

Examples:

TestAssertion.cpp.

Definition at line 147 of file Assertion.hpp.

Public Member Functions

 TestReport (bool silent=false)
 Constructs a TestReport object, set in silent mode if the silent parameter is true.
 ~TestReport ()
 destructor
void startTest ()
 Called by the test runner each time it is going to run a test.
void ignoreTest ()
 Called by the test runner each time is marked as muted (ignore).
void endSuccess ()
 Called by the test runner each time a test succeeded.
void endFailure (string msg)
 Called by the test runner each time a test failed.
void endError (string msg)
 Called by the test runner each time a test provokes an unexpected error.
void print ()
 Prints out the test report.


Constructor & Destructor Documentation

unittest::TestReport::TestReport bool  silent = false  ) 
 

Constructs a TestReport object, set in silent mode if the silent parameter is true.

Parameters:
silent true if the report should not write any output

Definition at line 79 of file Assertion.cpp.


Member Function Documentation

void unittest::TestReport::endError string  msg  ) 
 

Called by the test runner each time a test provokes an unexpected error.

Parameters:
msg the reason of the error

Definition at line 128 of file Assertion.cpp.

Referenced by unittest::TestSet::execute().

void unittest::TestReport::endFailure string  msg  ) 
 

Called by the test runner each time a test failed.

Parameters:
msg the reason of the failure

Definition at line 117 of file Assertion.cpp.

Referenced by unittest::TestSet::execute().


The documentation for this class was generated from the following files:
Generated on Mon Jun 5 22:05:27 2006 for ut4cpp by  doxygen 1.4.6-NO