2
* Copyright (C) 2008 Remko Troncon
3
* See COPYING for license details.
6
#ifndef QTTESTUTIL_TESTREGISTRY_H
7
#define QTTESTUTIL_TESTREGISTRY_H
13
namespace QtTestUtil {
16
* A registry of QtTest test classes.
17
* All test classes registered with QTTESTUTIL_REGISTER_TEST add
18
* themselves to this registry. All registered tests can then be run at
19
* once using runTests().
25
* Retrieve the single instance of the registry.
27
static TestRegistry* getInstance();
30
* Register a QtTest test.
31
* This method is called by QTTESTUTIL_REGISTER_TEST, and you should
32
* not use this method directly.
34
void registerTest(QObject*);
37
* Run all registered tests using QTest::qExec()
39
int runTests(int argc, char* argv[]);
45
QList<QObject*> tests_;