Commit 3cb92918 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Prepare autotests

parent e91f0af4
Pipeline #92167 canceled with stage
# SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
# SPDX-License-Identifier: BSD-3-Clause
macro(add_scamconfigure_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(scamplugin-${_name})
target_link_libraries( ${_name} Qt::Test KF5::I18n KF5::MessageViewer scamconfiguresettings)
endmacro ()
add_scamconfigure_plugin_unittest(scamconfiguresettingswidgettest.cpp)
/*
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "scamconfiguresettingswidgettest.h"
#include "../scamconfiguresettingswidget.h"
#include <QTest>
QTEST_MAIN(ScamConfigureSettingsWidgetTest)
ScamConfigureSettingsWidgetTest::ScamConfigureSettingsWidgetTest(QObject *parent)
: QObject{parent}
{
}
void ScamConfigureSettingsWidgetTest::shouldHaveDefaultValues()
{
ScamConfigureSettingsWidget w;
// TODO
}
/*
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
#include <QObject>
class ScamConfigureSettingsWidgetTest : public QObject
{
Q_OBJECT
public:
explicit ScamConfigureSettingsWidgetTest(QObject *parent = nullptr);
~ScamConfigureSettingsWidgetTest() override = default;
private Q_SLOTS:
void shouldHaveDefaultValues();
};
Supports Markdown
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