Commit 7ce7bb51 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add autotest

parent 8e8fb952
Pipeline #27791 canceled with stage
......@@ -10,6 +10,7 @@ kcoreaddons_add_plugin(messageviewer_expireaccounttrashfolderconfigplugin JSON m
target_link_libraries(messageviewer_expireaccounttrashfolderconfigplugin
KF5::MessageViewer
KF5::I18n
KF5::MailCommon
)
......
macro(add_messageviewer_expireaccounttrash_verify_unittest _source)
macro(add_messageviewer_expireaccounttrash_unittest _source)
get_filename_component(_name ${_source} NAME_WE)
ecm_add_test(${_source}
TEST_NAME ${_name}
......@@ -6,3 +6,6 @@ macro(add_messageviewer_expireaccounttrash_verify_unittest _source)
LINK_LIBRARIES KF5::MessageViewer Qt5::Test
)
endmacro ()
add_messageviewer_expireaccounttrash_unittest(expireaccounttrashfolderconfigdialogtest.cpp)
add_messageviewer_expireaccounttrash_unittest(expireaccounttrashfolderconfigwidgettest.cpp)
/*
Copyright (C) 2020 Laurent Montel <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 "expireaccounttrashfolderconfigdialogtest.h"
#include <QTest>
QTEST_MAIN(ExpireAccountTrashFolderConfigDialogTest)
ExpireAccountTrashFolderConfigDialogTest::ExpireAccountTrashFolderConfigDialogTest(QObject *parent)
: QObject(parent)
{
}
/*
Copyright (C) 2020 Laurent Montel <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 EXPIREACCOUNTTRASHFOLDERCONFIGDIALOGTEST_H
#define EXPIREACCOUNTTRASHFOLDERCONFIGDIALOGTEST_H
#include <QObject>
class ExpireAccountTrashFolderConfigDialogTest : public QObject
{
Q_OBJECT
public:
explicit ExpireAccountTrashFolderConfigDialogTest(QObject *parent = nullptr);
~ExpireAccountTrashFolderConfigDialogTest() = default;
};
#endif // EXPIREACCOUNTTRASHFOLDERCONFIGDIALOGTEST_H
/*
Copyright (C) 2020 Laurent Montel <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 "expireaccounttrashfolderconfigwidgettest.h"
#include <QTest>
QTEST_MAIN(ExpireAccountTrashFolderConfigWidgetTest)
ExpireAccountTrashFolderConfigWidgetTest::ExpireAccountTrashFolderConfigWidgetTest(QObject *parent)
: QObject(parent)
{
}
/*
Copyright (C) 2020 Laurent Montel <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 EXPIREACCOUNTTRASHFOLDERCONFIGWIDGETTEST_H
#define EXPIREACCOUNTTRASHFOLDERCONFIGWIDGETTEST_H
#include <QObject>
class ExpireAccountTrashFolderConfigWidgetTest : public QObject
{
Q_OBJECT
public:
explicit ExpireAccountTrashFolderConfigWidgetTest(QObject *parent = nullptr);
~ExpireAccountTrashFolderConfigWidgetTest() = default;
};
#endif // EXPIREACCOUNTTRASHFOLDERCONFIGWIDGETTEST_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