Commit 710f25d5 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add autotest

parent 8c913aa8
Pipeline #44504 canceled with stage
......@@ -39,3 +39,4 @@ add_unittest( kdebugsettingsloadingcategoriestest.cpp "")
add_unittest( changedebugmodejobtest.cpp "")
add_unittest( loadgroupmenutest.cpp "")
add_unittest( loadtoolbuttontest.cpp "")
add_unittest( savetoolbuttontest.cpp "")
......@@ -32,5 +32,7 @@ void LoadToolButtonTest::shouldHaveDefaultValues()
{
LoadToolButton w;
QVERIFY(w.menu());
QVERIFY(!w.text().isEmpty());
//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.
*/
#include "savetoolbuttontest.h"
#include "savetoolbutton.h"
#include <QTest>
QTEST_MAIN(SaveToolButtonTest)
SaveToolButtonTest::SaveToolButtonTest(QObject *parent)
: QObject(parent)
{
}
void SaveToolButtonTest::shouldHaveDefaultValues()
{
//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 SAVETOOLBUTTONTEST_H
#define SAVETOOLBUTTONTEST_H
#include <QObject>
class SaveToolButtonTest : public QObject
{
Q_OBJECT
public:
explicit SaveToolButtonTest(QObject *parent = nullptr);
~SaveToolButtonTest() override = default;
private Q_SLOTS:
void shouldHaveDefaultValues();
};
#endif // SAVETOOLBUTTONTEST_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