Commit 62f24288 authored by Laurent Montel's avatar Laurent Montel 😁

Add autotest

parent 06373844
......@@ -20,6 +20,7 @@ if(BUILD_TESTING)
add_subdirectory(vacation/tests)
add_subdirectory(sievescriptdebugger/autotests)
add_subdirectory(sievescriptdebugger/tests)
add_subdirectory(autocreatescripts/autotests/)
endif()
set(ksieveui_vacation_LIB_SRCS
......
include_directories(${libksieve_SOURCE_DIR}
${libksieve_SOURCE_DIR}/src/ksieveui/
)
macro(add_sieveeditor_autocreatescripts _source _extrasource)
set(_test ${_source} ${_extrasource})
get_filename_component(_name ${_source} NAME_WE)
ecm_add_test(${_test}
TEST_NAME ${_name}
NAME_PREFIX "sieveeditor-autocreatescripts-"
LINK_LIBRARIES Qt5::Test Qt5::Widgets Qt5::Xml KF5::I18n KF5::Completion KF5::ConfigCore
)
endmacro()
add_sieveeditor_autocreatescripts(selectheadertypecomboboxtest.cpp "../sieveconditions/widgets/selectheadertypecombobox.cpp;../autocreatescriptutil.cpp")
/*
Copyright (C) 2016 Laurent Montel <montel@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "selectheadertypecomboboxtest.h"
#include <QTest>
SelectHeaderTypeComboBoxTest::SelectHeaderTypeComboBoxTest(QObject *parent)
: QObject(parent)
{
}
SelectHeaderTypeComboBoxTest::~SelectHeaderTypeComboBoxTest()
{
}
void SelectHeaderTypeComboBoxTest::shouldHaveDefaultValue()
{
//TODO
}
QTEST_MAIN(SelectHeaderTypeComboBoxTest)
/*
Copyright (C) 2016 Laurent Montel <montel@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef SELECTHEADERTYPECOMBOBOXTEST_H
#define SELECTHEADERTYPECOMBOBOXTEST_H
#include <QObject>
class SelectHeaderTypeComboBoxTest : public QObject
{
Q_OBJECT
public:
explicit SelectHeaderTypeComboBoxTest(QObject *parent = Q_NULLPTR);
~SelectHeaderTypeComboBoxTest();
private Q_SLOTS:
void shouldHaveDefaultValue();
};
#endif // SELECTHEADERTYPECOMBOBOXTEST_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