Skip to content

Commit

Permalink
A template for creating new tests
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5219 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Apr 8, 2006
1 parent 556854f commit 28a3414
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/src/core/test_template.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#include <QtTest>
#include <QObject>
#include <QString>
#include <QObject>
//header for class being tested
#include <[testClassLowerCaseName].h>

class Test[testClassCamelCaseName]: public QObject
{
Q_OBJECT;
private slots:
[TestMethods]
};

QTEST_MAIN(Test[testClassCamelCaseName])
#include "test[testClassLowerCaseName].moc.cpp"




0 comments on commit 28a3414

Please sign in to comment.