tut logo

tut::console_reporter Class Reference


Public Member Functions | Public Attributes | List of all members
tut::console_reporter Class Reference

#include <tut_console_reporter.hpp>

Inheritance diagram for tut::console_reporter:
Inheritance graph
[legend]
Collaboration diagram for tut::console_reporter:
Collaboration graph
[legend]

Public Member Functions

 console_reporter (std::ostream &out)
 
virtual bool all_ok () const
 
void run_completed ()
 
void run_started ()
 
void test_completed (const tut::test_result &tr)
 
- Public Member Functions inherited from tut::callback
 callback ()
 
virtual ~callback ()
 
virtual void group_completed (const std::string &name)
 
virtual void group_started (const std::string &name)
 

Public Attributes

int exceptions_count
 
int failures_count
 
int ok_count
 
int skipped_count
 
int terminations_count
 
int warnings_count
 

Detailed Description

Default TUT callback handler.

Examples:
basic/main.cpp, and restartable/main.cpp.

Member Function Documentation

void tut::console_reporter::run_completed ( )
inlinevirtual

Called when all tests in run completed.

Reimplemented from tut::callback.

References tut::test_result::ex, tut::test_result::fail, tut::test_result::group, tut::test_result::message, tut::test_result::name, tut::test_result::term, tut::test_result::test, and tut::test_result::warn.

void tut::console_reporter::run_started ( )
inlinevirtual

Called when new test run started.

Reimplemented from tut::callback.

void tut::console_reporter::test_completed ( const tut::test_result tr)
inlinevirtual

Called when a test finished.

Parameters
trTest results.

Reimplemented from tut::callback.

References tut::test_result::ex, tut::test_result::fail, tut::test_result::group, tut::test_result::ok, tut::test_result::term, and tut::test_result::warn.


The documentation for this class was generated from the following file:
All Rights Reserved. Generated on Wed Dec 18 2013 11:19:52 for TUT by doxygen 1.8.5