summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-28 11:35:23 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-28 11:59:55 (GMT)
commit0d22b1c83614b06a80a2f3ef56ead46fd01dcee6 (patch)
tree4c58276eace1ec8b7a067386aac039b080c5b6ec
parenta3b521c2f3e33d091a0ae914320e431bb0a1880f (diff)
Look at to create autotest here
-rw-r--r--plugins/messageviewerplugins/externalscriptplugin/autotests/CMakeLists.txt3
-rw-r--r--plugins/messageviewerplugins/externalscriptplugin/autotests/viewerpluginexternalscripttest.cpp35
-rw-r--r--plugins/messageviewerplugins/externalscriptplugin/autotests/viewerpluginexternalscripttest.h33
3 files changed, 70 insertions, 1 deletions
diff --git a/plugins/messageviewerplugins/externalscriptplugin/autotests/CMakeLists.txt b/plugins/messageviewerplugins/externalscriptplugin/autotests/CMakeLists.txt
index c9e0120..328407a 100644
--- a/plugins/messageviewerplugins/externalscriptplugin/autotests/CMakeLists.txt
+++ b/plugins/messageviewerplugins/externalscriptplugin/autotests/CMakeLists.txt
@@ -10,7 +10,7 @@ macro(add_messageviewer_viewerplugin_external_plugin_unittest _source _additiona
ecm_add_test(${_test}
TEST_NAME ${_name}
NAME_PREFIX "messageviewerplugins-"
- LINK_LIBRARIES KF5::MessageViewer Qt5::Test KF5::KIOCore KF5::Mime KF5::AkonadiCore KF5::I18n
+ LINK_LIBRARIES KF5::MessageViewer Qt5::Test KF5::KIOCore KF5::Mime KF5::AkonadiCore KF5::I18n KF5::XmlGui
)
endmacro ()
@@ -22,3 +22,4 @@ add_messageviewer_viewerplugin_external_plugin_unittest(viewerpluginexternalconf
add_messageviewer_viewerplugin_external_plugin_unittest(viewerpluginexternalconfiguredialogtest.cpp "../configuredialog/viewerpluginexternaleditwidget.cpp;../configuredialog/viewerpluginexternaleditdialog.cpp;../configuredialog/viewerpluginexternalconfiguredialog.cpp;../configuredialog/viewerpluginexternalconfigurewidget.cpp;../viewerpluginexternalscriptsloadjob.cpp;../viewerpluginexternalscriptinfo.cpp" "")
add_messageviewer_viewerplugin_external_plugin_unittest(viewerpluginexternaleditwidgettest.cpp "../viewerpluginexternalscriptinfo.cpp;../configuredialog/viewerpluginexternaleditwidget.cpp" "")
add_messageviewer_viewerplugin_external_plugin_unittest(viewerpluginexternaleditdialogtest.cpp "../viewerpluginexternalscriptinfo.cpp;../configuredialog/viewerpluginexternaleditdialog.cpp;../configuredialog/viewerpluginexternaleditwidget.cpp" "")
+#add_messageviewer_viewerplugin_external_plugin_unittest(viewerpluginexternalscripttest.cpp "../viewerpluginexternalscriptparseargument.cpp;../viewerpluginexternalscript.cpp;../viewerpluginexternalscriptinterface.cpp;../viewerpluginexternalscriptinfo.cpp;../configuredialog/viewerpluginexternaleditdialog.cpp;../configuredialog/viewerpluginexternaleditwidget.cpp;../configuredialog/viewerpluginexternaleditwidget.cpp;../configuredialog/viewerpluginexternaleditdialog.cpp;../configuredialog/viewerpluginexternalconfigurewidget.cpp;../viewerpluginexternalscriptsloadjob.cpp;../viewerpluginexternalscriptinfo.cpp" "")
diff --git a/plugins/messageviewerplugins/externalscriptplugin/autotests/viewerpluginexternalscripttest.cpp b/plugins/messageviewerplugins/externalscriptplugin/autotests/viewerpluginexternalscripttest.cpp
new file mode 100644
index 0000000..730d796
--- /dev/null
+++ b/plugins/messageviewerplugins/externalscriptplugin/autotests/viewerpluginexternalscripttest.cpp
@@ -0,0 +1,35 @@
+/*
+ Copyright (C) 2016 Montel Laurent <montel@kde.org>
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; see the file COPYING. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+#include "viewerpluginexternalscripttest.h"
+
+#include <QTest>
+
+ViewerPluginExternalscriptTest::ViewerPluginExternalscriptTest(QObject *parent)
+ : QObject(parent)
+{
+
+}
+
+ViewerPluginExternalscriptTest::~ViewerPluginExternalscriptTest()
+{
+
+}
+
+QTEST_MAIN(ViewerPluginExternalscriptTest)
diff --git a/plugins/messageviewerplugins/externalscriptplugin/autotests/viewerpluginexternalscripttest.h b/plugins/messageviewerplugins/externalscriptplugin/autotests/viewerpluginexternalscripttest.h
new file mode 100644
index 0000000..e379a45
--- /dev/null
+++ b/plugins/messageviewerplugins/externalscriptplugin/autotests/viewerpluginexternalscripttest.h
@@ -0,0 +1,33 @@
+/*
+ Copyright (C) 2016 Montel Laurent <montel@kde.org>
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; see the file COPYING. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+#ifndef VIEWERPLUGINEXTERNALSCRIPTTEST_H
+#define VIEWERPLUGINEXTERNALSCRIPTTEST_H
+
+#include <QObject>
+
+class ViewerPluginExternalscriptTest : public QObject
+{
+ Q_OBJECT
+public:
+ explicit ViewerPluginExternalscriptTest(QObject *parent = Q_NULLPTR);
+ ~ViewerPluginExternalscriptTest();
+};
+
+#endif // VIEWERPLUGINEXTERNALSCRIPTTEST_H