summaryrefslogtreecommitdiff
path: root/shared/templates/wizards/autotest/tst_src.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'shared/templates/wizards/autotest/tst_src.cpp')
-rw-r--r--shared/templates/wizards/autotest/tst_src.cpp58
1 files changed, 58 insertions, 0 deletions
diff --git a/shared/templates/wizards/autotest/tst_src.cpp b/shared/templates/wizards/autotest/tst_src.cpp
new file mode 100644
index 0000000000..65d49e9c18
--- /dev/null
+++ b/shared/templates/wizards/autotest/tst_src.cpp
@@ -0,0 +1,58 @@
+#include <QtTest>
+@if "%RequireApplication%" == "true"
+#include <QCoreApplication>
+@endif
+
+// add necessary includes here
+
+class %TestCaseName% : public QObject
+{
+ Q_OBJECT
+
+public:
+ %TestCaseName%();
+ ~%TestCaseName%();
+
+private slots:
+@if "%GenerateInitAndCleanup%" == "true"
+ void initTestCase();
+ void cleanupTestCase();
+@endif
+ void test_case1();
+
+};
+
+%TestCaseName%::%TestCaseName%()
+{
+
+}
+
+%TestCaseName%::~%TestCaseName%()
+{
+
+}
+
+@if "%GenerateInitAndCleanup%" == "true"
+void %TestCaseName%::initTestCase()
+{
+
+}
+
+void %TestCaseName%::cleanupTestCase()
+{
+
+}
+
+@endif
+void %TestCaseName%::test_case1()
+{
+
+}
+
+@if "%RequireApplication%" == "true"
+QTEST_MAIN(%TestCaseName%)
+@else
+QTEST_APPLESS_MAIN(%TestCaseName%)
+@endif
+
+#include "tst_%TestCaseName:l%.moc"