testsoon::test_reporter Class Reference

Base class for reporters. More...

Inherited by testsoon::simple_reporter, and testsoon::xml_reporter.

List of all members.

Public Member Functions

virtual void start ()
 Indicates the start of a whole test run.
virtual void stop ()
 Indicates the end of a whole test run.
virtual void begin_group (test_group const &group)
 Indicates the start of a test group.
virtual void end_group (test_group const &group)
 Indicates the end of a test group.
virtual void before_tests (test_group const &group)
 Indicates that the next event will be success() or failure().
virtual void after_tests (test_group const &group)
 Indicates that the next event will not be success() or failure().
virtual void success (test_info const &info, string const &sequence_key)
 Indicates that the last test succeeded.
virtual void failure (test_info const &info, test_failure const &failure, string const &value)=0
 Indicates that the last test failed.
virtual void unexpected_exception (test_info const &info, string const &value)
 Indicates that the last test threw an unexpected exception.
virtual void stats (statistics const &stat)
 Indicates the overall statistics.
virtual ~test_reporter ()
 Destructor.


Detailed Description

Base class for reporters.

Definition at line 132 of file testsoon.hpp.


Constructor & Destructor Documentation

virtual testsoon::test_reporter::~test_reporter (  )  [virtual]

Destructor.

Definition at line 159 of file testsoon.hpp.


Member Function Documentation

virtual void testsoon::test_reporter::start (  )  [virtual]

Indicates the start of a whole test run.

Reimplemented in testsoon::xml_reporter.

Definition at line 135 of file testsoon.hpp.

virtual void testsoon::test_reporter::stop (  )  [virtual]

Indicates the end of a whole test run.

Reimplemented in testsoon::xml_reporter.

Definition at line 137 of file testsoon.hpp.

virtual void testsoon::test_reporter::begin_group ( test_group const &  group  )  [virtual]

Indicates the start of a test group.

Reimplemented in testsoon::xml_reporter.

Definition at line 139 of file testsoon.hpp.

virtual void testsoon::test_reporter::end_group ( test_group const &  group  )  [virtual]

Indicates the end of a test group.

Reimplemented in testsoon::xml_reporter.

Definition at line 141 of file testsoon.hpp.

virtual void testsoon::test_reporter::before_tests ( test_group const &  group  )  [virtual]

Indicates that the next event will be success() or failure().

Reimplemented in testsoon::simple_reporter.

Definition at line 143 of file testsoon.hpp.

virtual void testsoon::test_reporter::after_tests ( test_group const &  group  )  [virtual]

Indicates that the next event will not be success() or failure().

Reimplemented in testsoon::simple_reporter.

Definition at line 145 of file testsoon.hpp.

virtual void testsoon::test_reporter::success ( test_info const &  info,
string const &  sequence_key 
) [virtual]

Indicates that the last test succeeded.

Reimplemented in testsoon::xml_reporter, and testsoon::simple_reporter.

Definition at line 147 of file testsoon.hpp.

virtual void testsoon::test_reporter::failure ( test_info const &  info,
test_failure const &  failure,
string const &  value 
) [pure virtual]

Indicates that the last test failed.

Implemented in testsoon::xml_reporter, and testsoon::simple_reporter.

Referenced by unexpected_exception().

void testsoon::test_reporter::unexpected_exception ( test_info const &  info,
string const &  value 
) [virtual]

Indicates that the last test threw an unexpected exception.

Definition at line 265 of file testsoon.hpp.

References failure().

virtual void testsoon::test_reporter::stats ( statistics const &  stat  )  [virtual]

Indicates the overall statistics.

Definition at line 157 of file testsoon.hpp.


The documentation for this class was generated from the following file:
Generated on Sat Dec 22 15:34:59 2007 for Test soon by  doxygen 1.5.3