Commit ac7328b2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Prepare autotests

parent d8745e45
Pipeline #28520 failed with stage
in 96 minutes and 57 seconds
macro(add_foldersettings_plugin_unittest _source )
set( _test ${_source})
get_filename_component(_name ${_source} NAME_WE)
add_executable( ${_name} ${_test} )
add_test(NAME ${_name} COMMAND ${_name} )
ecm_mark_as_test(foldersettings-${_name})
target_link_libraries( ${_name} KF5::PimCommon Qt5::Test KF5::I18n KF5::MessageViewer folderconfiguresettings)
endmacro ()
add_foldersettings_plugin_unittest(folderconfiguresettingswidgettest.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 "folderconfiguresettingswidgettest.h"
#include "../folderconfiguresettingswidget.h"
#include <QTest>
QTEST_MAIN(FolderConfigureSettingsWidgetTest)
FolderConfigureSettingsWidgetTest::FolderConfigureSettingsWidgetTest(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 FOLDERCONFIGURESETTINGSWIDGETTEST_H
#define FOLDERCONFIGURESETTINGSWIDGETTEST_H
#include <QObject>
class FolderConfigureSettingsWidgetTest : public QObject
{
Q_OBJECT
public:
explicit FolderConfigureSettingsWidgetTest(QObject *parent = nullptr);
~FolderConfigureSettingsWidgetTest() = default;
};
#endif // FOLDERCONFIGURESETTINGSWIDGETTEST_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