Home > The Unit Test Framework > User's guide > Test Output > Test log > Human readable format
PrevNext

Human readable log output format

The human readable log format is designed to closely match an errors description produced by the Microsoft family of C++ compilers. This format allows jumping to the error location, if test module output is redirected into IDE output window. The rest of the log messages are designed to produce the most human friendly description of the events occurring in test module. This is a default format generated by test modules.

Here the list of events along with corresponding message and the condition that has to be satisfied for it to appear in the output.

Event : On testing start
Condition : threshold != log_nothing
Output :

Running<totalnumberoftestcases>testcase(s)


Event : On testing start
Condition : threshold != log_nothing and show_build_info is set
Output :

Platform:$BOOST_PLATFORM
Compiler:$BOOST_COMPILER
STL:$BOOST_STDLIB
Boost:$BOOST_VERSION


Event : On abnormal testing termination
Condition : threshold <= log_messages
Output :

Testisaborted


Event : On test unit start
Condition : threshold <= log_test_units
Output :

Enteringtest<testunittype><testunitname>


Event : On test unit end
Condition : threshold <= log_test_units; testing time is reported only if elapsed time is more than 1 mks.
Output :

Leavingtest<testunittype><testunitname>;testingtime<value>


Event : On skipped test unit
Condition : threshold <= log_test_units
Output :

Test<testunittype><testunitname>isskipped


Event : On uncaught C++ exception
Condition : threshold <= log_cpp_exception_errors. Checkpoint message is reported only if provided
Output :

unknownlocation(0):fatalerrorin<testcasename>:<explanation>
<lastcheckpointlocation>:lastcheckpoint:<checkpointmessage>


Event : On resumable system error
Condition : threshold <= log_system_errors. Checkpoint message is reported only if provided
Output :

unknownlocation(0):fatalerrorin<testcasename>:<explanation>
<lastcheckpointlocation>:lastcheckpoint:<checkpointmessage>


Event : On fatal system error
Condition : threshold <= log_fatal_errors. Checkpoint message is reported only if provided
Output :

unknownlocation(0):fatalerrorin<testcasename>:<explanation>
<lastcheckpointlocation>:lastcheckpoint:<checkpointmessage>


Event : On passed test assertion
Condition : threshold <= log_successful_tests
Output :

<assertionlocation>:info:check<assertionexpression>passed


Event : On failed WARNING level test assertion
Condition : threshold <= log_warnings
Output :

<assertionlocation>:warningin<testcasename>:condition<assertiondescription>isnotsatisfied


Event : On failed CHECK level test assertion
Condition : threshold <= log_all_errors
Output :

<assertionlocation>:errorin<testcasename>:check<assertiondescription>failed


Event : On failed REQUIRE level test assertion
Condition : threshold <= log_fatal_errors
Output :

<assertionlocation>:fatalerrorin<testcasename>:criticalcheck<assertiondescription>failed


Event : On test log message
Condition : threshold <= log_messages
Output :

<Messagecontent>


Advanced testing tools may produce more complicated error messages.


PrevUpHomeNext