28#ifndef PT_UNIT_APPLICATION_H
29#define PT_UNIT_APPLICATION_H
31#include <Pt/Unit/Api.h>
32#include <Pt/Unit/Reporter.h>
33#include <Pt/Unit/Test.h>
121 void run(
const std::string& testName);
144 void deregisterTest(
Test& test);
void attachReporter(Reporter &r)
Add reporter for test events.
Test * findTest(const std::string &testname)
Find a test by name.
virtual void run()
Run all tests.
unsigned errors() const
Returns the number of errors which occured during a run.
Definition Application.h:132
static Application & instance()
Returns the instance.
void registerTest(Test &test)
Register a test.
virtual ~Application()
Destructor.
void run(const std::string &testName)
Run test by name.
void attachReporter(Reporter &r, const std::string &testname)
Add reporter for test events.
static std::list< Test * > & tests()
Returns a list of all registered test TODO: find another way to query available tests.
Application()
Default Constructor.
Test event reporter
Definition Reporter.h:56
Test(const std::string &name)
Construct a test by name.
Definition Test.h:145
Protocol and data driven unit testing framework.
Core module.
Definition Allocator.h:33