Skip to content

Commit 735cb36

Browse files
author
timlinux
committed
A template for creating new tests
git-svn-id: http://svn.osgeo.org/qgis/trunk@5219 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent dfca9e6 commit 735cb36

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/src/core/test_template.cpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#include <QtTest>
2+
#include <QObject>
3+
#include <QString>
4+
#include <QObject>
5+
//header for class being tested
6+
#include <[testClassLowerCaseName].h>
7+
8+
class Test[testClassCamelCaseName]: public QObject
9+
{
10+
Q_OBJECT;
11+
private slots:
12+
[TestMethods]
13+
};
14+
15+
QTEST_MAIN(Test[testClassCamelCaseName])
16+
#include "test[testClassLowerCaseName].moc.cpp"
17+
18+
19+
20+

0 commit comments

Comments
 (0)