wibble
1.1
|
Test runner. More...
#include <tut.h>
Public Member Functions | |
test_runner () | |
Constructor. More... | |
void | register_group (const std::string &name, group_base *gr) |
Stores another group for getting by name. More... | |
void | set_callback (callback *cb) |
Stores callback object. More... | |
callback & | get_callback () const |
Returns callback object. More... | |
const groupnames | list_groups () const |
Returns list of known test groups. More... | |
void | run_tests () const |
Runs all tests in all groups. More... | |
void | run_tests (const std::string &group_name) const |
Runs all tests in specified group. More... | |
test_result | run_test (const std::string &group_name, int n) const |
Runs one test in specified group. More... | |
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_ |
callback * | callback_ |
Test runner.
|
protected |
|
protected |
|
protected |
|
inline |
Constructor.
|
inline |
Returns callback object.
References callback_.
Referenced by tut::restartable_wrapper::get_callback().
|
inline |
Returns list of known test groups.
References groups_.
Referenced by tut::restartable_wrapper::list_groups(), and main().
|
inline |
Stores another group for getting by name.
References groups_, and wibble::iterator().
Referenced by tut::restartable_wrapper::register_group(), and tut::test_group< Data, MaxTestsInGroup >::test_group().
|
inline |
Runs one test in specified group.
References callback_, tut::callback::group_completed(), tut::callback::group_started(), groups_, tut::callback::run_completed(), tut::callback::run_started(), and tut::callback::test_completed().
Referenced by main(), and tut::restartable_wrapper::run_tests().
|
inline |
Runs all tests in all groups.
callback | Callback object if exists; null otherwise |
References callback_, tut::callback::group_completed(), tut::callback::group_started(), groups_, tut::callback::run_completed(), and tut::callback::run_started().
Referenced by main().
|
inline |
Runs all tests in specified group.
References callback_, tut::callback::group_completed(), tut::callback::group_started(), groups_, tut::callback::run_completed(), and tut::callback::run_started().
|
inline |
|
protected |
Referenced by get_callback(), run_test(), run_tests(), and set_callback().
|
protected |
Referenced by set_callback().
|
protected |
Referenced by list_groups(), register_group(), run_test(), and run_tests().