tut logo

tut::xml_reporter Class Reference


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

JUnit XML TUT reporter. More...

#include <tut_xml_reporter.hpp>

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

Public Member Functions

 xml_reporter (const std::string &filename)
 number of tests where destructors threw an exception More...
 
 xml_reporter (std::ostream &stream)
 
virtual bool all_ok () const
 Returns true, if all tests passed.
 
virtual void run_completed ()
 Callback function This function is called when all tests are completed. It generates XML output to file(s). File name base can be set with constructor.
 
virtual void run_started ()
 Callback function This function is called before the first test is executed. It initializes counters.
 
virtual void test_completed (const tut::test_result &tr)
 Callback function This function is called when test completes. Counters are updated here, and test results stored.
 
- 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
 number of passed tests
 
int failures_count
 number of tests that threw exceptions
 
int ok_count
 
int terminations_count
 number of tests that failed
 
int warnings_count
 number of tests that would terminate
 

Detailed Description

JUnit XML TUT reporter.

Author
Lukasz Maszczynski, NSN
Date
11/07/2008

Constructor & Destructor Documentation

tut::xml_reporter::xml_reporter ( const std::string &  filename)
inline

number of tests where destructors threw an exception

Default constructor

Parameters
filenamebase filename

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