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

Add autotest

parent 7b6665c6
Pipeline #44362 passed with stage
in 8 minutes and 49 seconds
......@@ -37,3 +37,4 @@ add_unittest( renamecategorytest.cpp "")
add_unittest( saverulesjobtest.cpp "")
add_unittest( kdebugsettingsloadingcategoriestest.cpp "")
add_unittest( changedebugmodejobtest.cpp "")
add_unittest( loadgroupmenutest.cpp "")
/*
Copyright (c) 2020 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 "loadgroupmenutest.h"
#include "loadgroupmenu.h"
#include <QTest>
QTEST_MAIN(LoadGroupMenuTest)
LoadGroupMenuTest::LoadGroupMenuTest(QObject *parent)
: QObject(parent)
{
}
void LoadGroupMenuTest::shouldHaveDefaultValues()
{
LoadGroupMenu m;
//TODO
}
/*
Copyright (c) 2020 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 LOADGROUPMENUTEST_H
#define LOADGROUPMENUTEST_H
#include <QObject>
class LoadGroupMenuTest : public QObject
{
Q_OBJECT
public:
explicit LoadGroupMenuTest(QObject *parent = nullptr);
~LoadGroupMenuTest() override = default;
private Q_SLOTS:
void shouldHaveDefaultValues();
};
#endif // LOADGROUPMENUTEST_H
......@@ -22,12 +22,12 @@
#define LOADGROUPMENU_H
#include <QMenu>
class LoadGroupMenu : public QMenu
#include "libkdebugsettings_private_export.h"
class LIBKDEBUGSETTINGS_EXPORT_TEST_EXPORT LoadGroupMenu : public QMenu
{
Q_OBJECT
public:
explicit LoadGroupMenu(QWidget *parent);
explicit LoadGroupMenu(QWidget *parent = nullptr);
~LoadGroupMenu() override;
private:
void init();
......
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