tut logo

tut::cppunit_reporter Class Reference


Public Member Functions | Static Public Member Functions | List of all members
tut::cppunit_reporter Class Reference

#include <tut_cppunit_reporter.hpp>

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

Public Member Functions

 cppunit_reporter (const std::string &filename="testResult.xml")
 
 cppunit_reporter (std::ostream &stream)
 
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)
 

Static Public Member Functions

static std::string encode (const std::string &text)
 Encodes text to XML XML-reserved characters (e.g. "<") are encoded according to specification. More...
 

Detailed Description

CppUnit TUT reporter

Member Function Documentation

static std::string tut::cppunit_reporter::encode ( const std::string &  text)
inlinestatic

Encodes text to XML XML-reserved characters (e.g. "<") are encoded according to specification.

Parameters
texttext to be encoded
Returns
encoded string

Referenced by run_completed().

void tut::cppunit_reporter::run_completed ( )
inlinevirtual

Called when all tests in run completed.

Reimplemented from tut::callback.

References encode(), tut::test_result::ex, tut::test_result::fail, tut::test_result::term, and tut::test_result::warn.

Here is the call graph for this function:

void tut::cppunit_reporter::run_started ( )
inlinevirtual

Called when new test run started.

Reimplemented from tut::callback.

void tut::cppunit_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::ok.


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