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>
105 void run(
const std::string& testName);
128 void deregisterTest(
Test& test);
Core module.
Definition: pt-gfx-images.dox:14
virtual ~Application()
Destructor.
virtual void run()
Run all tests.
Test * findTest(const std::string &testname)
Find a test by name.
unsigned errors() const
Returns the number of errors which occured during a run.
Definition: Application.h:116
static Application & instance()
Returns the instance.
void attachReporter(Reporter &r, const std::string &testname)
Add reporter for test events.
Test event reporter
Definition: Reporter.h:56
void registerTest(Test &test)
Register a test.
Application()
Default Constructor.
static std::list< Test * > & tests()
Returns a list of all registered test TODO: find another way to query available tests.
void run(const std::string &testName)
Run test by name.
Test base class
Definition: Test.h:55
Run registered tests.
Definition: Application.h:65
void attachReporter(Reporter &r)
Add reporter for test events.