blob: 1916b56d6de6a2baa712e74ff289a13cca131cfe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#include <QtTest>
class $classname$ : public QObject
{
Q_OBJECT
private slots:
void initTestCase_data()
{
qDebug("Creates a global test data table.");
}
void initTestCase()
{
qDebug("Called before the first test function is executed.");
}
void init()
{
qDebug("Called before each test function is executed.");
}
void myTest()
{
QVERIFY(true); // check that a condition is satisfied
QCOMPARE(1, 1); // compare two values
}
void cleanup()
{
qDebug("Called after every test function.");
}
void cleanupTestCase()
{
qDebug("Called after the last test function was executed.");
}
};
QTEST_MAIN($classname$)
#include "$mocfile$"
|