tut::test_runner Class Reference

#include <tut.h>


Detailed Description

Test runner.

Public Member Functions

 test_runner ()
 Constructor.
void register_group (const std::string &name, group_base *gr)
 Stores another group for getting by name.
void set_callback (callback *cb)
 Stores callback object.
callbackget_callback () const
 Returns callback object.
const groupnames list_groups () const
 Returns list of known test groups.
void run_tests () const
 Runs all tests in all groups.
void run_tests (const std::string &group_name) const
 Runs all tests in specified group.
test_result run_test (const std::string &group_name, int n) const
 Runs one test in specified group.

Protected Types

typedef std::map< std::string,
group_base * > 
groups
typedef groups::iterator iterator
typedef groups::const_iterator const_iterator

Protected Attributes

groups groups_
callback default_callback_
callbackcallback_

Member Function Documentation

void tut::test_runner::run_tests (  )  const [inline]

Runs all tests in all groups.

Parameters:
callback Callback object if exists; null otherwise


The documentation for this class was generated from the following file:

Generated on Sun May 18 18:41:52 2008 for libdballe by  doxygen 1.5.5