#include <cxxtools/unit/registertest.h>
| TestT | The type of test to register Tests can be registered easily with the RegisterTest<> class template to an Unit::Application at program initialisation. A typical example looks like this: |
class MyTest : public Unit::TestCase { ... }; RegisterTest<MyTest> _registerMyTest;
The constructor of the RegisterTest class template will register an instance of its template parameter to the application.