Commit 5fa6529b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add more autotest

parent f7949d96
Pipeline #28635 failed with stage
in 64 minutes and 58 seconds
...@@ -3,7 +3,7 @@ macro(add_messageviewer_expireaccounttrash_unittest _source) ...@@ -3,7 +3,7 @@ macro(add_messageviewer_expireaccounttrash_unittest _source)
ecm_add_test(${_source} ecm_add_test(${_source}
TEST_NAME ${_name} TEST_NAME ${_name}
NAME_PREFIX "messageviewer-" NAME_PREFIX "messageviewer-"
LINK_LIBRARIES KF5::MessageViewer Qt5::Test LINK_LIBRARIES KF5::MessageViewer Qt5::Test expireaccounttrashfolderconfig
) )
endmacro () endmacro ()
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
*/ */
#include "expireaccounttrashfolderconfigwidgettest.h" #include "expireaccounttrashfolderconfigwidgettest.h"
#include "../expireaccounttrashfolderconfigwidget.h"
#include <QTest> #include <QTest>
QTEST_MAIN(ExpireAccountTrashFolderConfigWidgetTest) QTEST_MAIN(ExpireAccountTrashFolderConfigWidgetTest)
ExpireAccountTrashFolderConfigWidgetTest::ExpireAccountTrashFolderConfigWidgetTest(QObject *parent) ExpireAccountTrashFolderConfigWidgetTest::ExpireAccountTrashFolderConfigWidgetTest(QObject *parent)
...@@ -25,3 +26,8 @@ ExpireAccountTrashFolderConfigWidgetTest::ExpireAccountTrashFolderConfigWidgetTe ...@@ -25,3 +26,8 @@ ExpireAccountTrashFolderConfigWidgetTest::ExpireAccountTrashFolderConfigWidgetTe
{ {
} }
void ExpireAccountTrashFolderConfigWidgetTest::shouldHaveDefaultValues()
{
ExpireAccountTrashFolderConfigWidget w;
}
...@@ -28,6 +28,8 @@ class ExpireAccountTrashFolderConfigWidgetTest : public QObject ...@@ -28,6 +28,8 @@ class ExpireAccountTrashFolderConfigWidgetTest : public QObject
public: public:
explicit ExpireAccountTrashFolderConfigWidgetTest(QObject *parent = nullptr); explicit ExpireAccountTrashFolderConfigWidgetTest(QObject *parent = nullptr);
~ExpireAccountTrashFolderConfigWidgetTest() = default; ~ExpireAccountTrashFolderConfigWidgetTest() = default;
private Q_SLOTS:
void shouldHaveDefaultValues();
}; };
#endif // EXPIREACCOUNTTRASHFOLDERCONFIGWIDGETTEST_H #endif // EXPIREACCOUNTTRASHFOLDERCONFIGWIDGETTEST_H
...@@ -21,12 +21,12 @@ ...@@ -21,12 +21,12 @@
#define EXPIREACCOUNTTRASHFOLDERCONFIGWIDGET_H #define EXPIREACCOUNTTRASHFOLDERCONFIGWIDGET_H
#include <QWidget> #include <QWidget>
#include "expireaccounttrashfolderconfig_private_export.h"
namespace MailCommon namespace MailCommon
{ {
class CollectionExpiryWidget; class CollectionExpiryWidget;
} }
class LIBEXPIREACCOUNTTRASHFOLDERCONFIG_TESTS_EXPORT ExpireAccountTrashFolderConfigWidget : public QWidget
class ExpireAccountTrashFolderConfigWidget : public QWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
......
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