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

Add autotest

parent a19be54e
......@@ -4,7 +4,8 @@ macro(add_autocreatescriptswidget_test _source _additionalsource)
add_executable( ${_name} ${_test} )
add_test( ${_name} ${_name} )
ecm_mark_as_test(sievescriptdebugger-${_name})
target_link_libraries( ${_name} KF5::KSieveUi Qt5::Test)
target_link_libraries( ${_name} KF5::KSieveUi Qt5::Test)
endmacro()
add_autocreatescriptswidget_test(lineeditvalidatortest.cpp "")
add_autocreatescriptswidget_test(includefilelineedittest.cpp "")
/*
Copyright (C) 2017 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 "includefilelineedittest.h"
#include <QTest>
IncludeFileLineEditTest::IncludeFileLineEditTest(QObject *parent)
: QObject(parent)
{
}
QTEST_MAIN(IncludeFileLineEditTest)
/*
Copyright (C) 2017 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 INCLUDEFILELINEEDITTEST_H
#define INCLUDEFILELINEEDITTEST_H
#include <QObject>
class IncludeFileLineEditTest : public QObject
{
Q_OBJECT
public:
explicit IncludeFileLineEditTest(QObject *parent = nullptr);
~IncludeFileLineEditTest() = default;
};
#endif // INCLUDEFILELINEEDITTEST_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