tut logo

TUT: tut::callback Struct Reference


tut::callback Struct Reference

#include <tut_runner.hpp>

Inheritance diagram for tut::callback:

Inheritance graph
[legend]
List of all members.

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.

Definition at line 38 of file tut_runner.hpp.


Public Member Functions

virtual bool all_ok () const
 callback ()
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)
virtual ~callback ()

Constructor & Destructor Documentation

tut::callback::callback (  )  [inline]

Default constructor.

Definition at line 43 of file tut_runner.hpp.

virtual tut::callback::~callback (  )  [inline, virtual]

Virtual destructor is a must for subclassed types.

Definition at line 50 of file tut_runner.hpp.


Member Function Documentation

virtual void tut::callback::group_completed ( const std::string &  name  )  [inline, virtual]

Called when a group is completed

Parameters:
name Name of the group

Definition at line 83 of file tut_runner.hpp.

virtual void tut::callback::group_started ( const std::string &  name  )  [inline, virtual]

Called when a group started

Parameters:
name Name of the group

Definition at line 65 of file tut_runner.hpp.

virtual void tut::callback::run_completed (  )  [inline, virtual]

Called when all tests in run completed.

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

Definition at line 91 of file tut_runner.hpp.

virtual void tut::callback::run_started (  )  [inline, virtual]

Called when new test run started.

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

Definition at line 57 of file tut_runner.hpp.

virtual void tut::callback::test_completed ( const test_result tr  )  [inline, virtual]

Called when a test finished.

Parameters:
tr Test results.

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

Definition at line 74 of file tut_runner.hpp.


The documentation for this struct was generated from the following file:
All Rights Reserved. Generated on Sun Jan 31 00:39:47 2010 for TUT by doxygen 1.5.1