Commit f249045f authored by Laurent Montel's avatar Laurent Montel 😁

Add more autotests

parent f1634220
......@@ -5,8 +5,9 @@ macro(add_kmail_converttext_unittest _source _additional)
add_test(NAME ${_name} COMMAND ${_name} )
ecm_mark_as_test(kmail_converttext-${_name})
target_link_libraries( ${_name} Qt5::Test KF5::XmlGui KF5::IconThemes KF5::MessageComposer KF5::I18n)
target_link_libraries( ${_name} Qt5::Test KF5::XmlGui KF5::IconThemes KF5::MessageComposer KF5::I18n Qt5::WebEngineWidgets)
endmacro ()
add_kmail_converttext_unittest(markdowninterfacetest.cpp "")
add_kmail_converttext_unittest(markdownpreviewwidgettest.cpp "")
add_kmail_converttext_unittest(markdownplugintest.cpp "")
......@@ -18,6 +18,7 @@
*/
#include "markdowninterfacetest.h"
#include "../markdowninterface.h"
#include <QTest>
QTEST_MAIN(MarkdownInterfaceTest)
......@@ -26,3 +27,8 @@ MarkdownInterfaceTest::MarkdownInterfaceTest(QObject *parent)
{
}
void MarkdownInterfaceTest::shouldHaveDefaultValue()
{
}
......@@ -28,6 +28,8 @@ class MarkdownInterfaceTest : public QObject
public:
explicit MarkdownInterfaceTest(QObject *parent = nullptr);
~MarkdownInterfaceTest() = default;
private Q_SLOTS:
void shouldHaveDefaultValue();
};
#endif // MARKDOWNINTERFACETEST_H
/*
Copyright (C) 2018 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 "markdownplugintest.h"
#include <QTest>
QTEST_MAIN(MarkdownPluginTest)
MarkdownPluginTest::MarkdownPluginTest(QObject *parent)
: QObject(parent)
{
}
/*
Copyright (C) 2018 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 MARKDOWNPLUGINTEST_H
#define MARKDOWNPLUGINTEST_H
#include <QObject>
class MarkdownPluginTest : public QObject
{
Q_OBJECT
public:
explicit MarkdownPluginTest(QObject *parent = nullptr);
~MarkdownPluginTest() = default;
};
#endif // MARKDOWNPLUGINTEST_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment