tut logo

tut::callback Struct Reference


Public Member Functions | List of all members
tut::callback Struct Reference

#include <tut_runner.hpp>

Inheritance diagram for tut::callback:
Inheritance graph
[legend]

Public Member Functions

 callback ()
 
virtual ~callback ()
 
virtual bool all_ok () const
 
virtual void group_completed (const std::string &name)
 
virtual void group_started (const std::string &name)
 
virtual void run_completed ()
 
virtual void run_started ()
 
virtual void test_completed (const test_result &tr)
 

Detailed Description

Test runner callback interface. Can be implemented by caller to update tests results in real-time. User can implement any of callback methods, and leave unused in default implementation.

Constructor & Destructor Documentation

tut::callback::callback ( )
inline

Default constructor.

virtual tut::callback::~callback ( )
inlinevirtual

Virtual destructor is a must for subclassed types.

Member Function Documentation

virtual void tut::callback::group_completed ( const std::string &  name)
inlinevirtual

Called when a group is completed

Parameters
nameName of the group
virtual void tut::callback::group_started ( const std::string &  name)
inlinevirtual

Called when a group started

Parameters
nameName of the group
virtual void tut::callback::run_completed ( )
inlinevirtual

Called when all tests in run completed.

Reimplemented in tut::xml_reporter, tut::console_reporter, and tut::cppunit_reporter.

virtual void tut::callback::run_started ( )
inlinevirtual

Called when new test run started.

Reimplemented in tut::xml_reporter, tut::console_reporter, and tut::cppunit_reporter.

virtual void tut::callback::test_completed ( const test_result tr)
inlinevirtual

Called when a test finished.

Parameters
trTest results.

Reimplemented in tut::xml_reporter, tut::console_reporter, and tut::cppunit_reporter.


The documentation for this struct 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