Commit 0cf54738 authored by Laurent Montel's avatar Laurent Montel 😁

improve autotest

parent f6fb5c1e
......@@ -31,9 +31,11 @@ macro(add_sieveserver_unittest _source _additionalSource)
KF5::I18n
KF5::Bookmarks
KF5::XmlGui
KF5::MailTransport
KF5::PimCommon
)
endmacro ()
add_sieveserver_unittest( sieveeditorconfigureserverpagetest.cpp "../sieveeditorconfigureserverpage.cpp")
add_sieveserver_unittest( sieveeditorconfiguredialogtest.cpp "")
#add_sieveserver_unittest( sieveeditorconfiguredialogtest.cpp "../sieveeditorconfiguredialog.cpp")
#add_sieveserver_unittest( sieveeditorbookmarkstest.cpp "../sieveeditorbookmarks.cpp")
......@@ -16,12 +16,14 @@
*/
#include "sieveeditorconfiguredialogtest.h"
#include "../sieveeditorconfiguredialog.h"
#include <QTest>
#include <QStandardPaths>
SieveEditorConfigureDialogTest::SieveEditorConfigureDialogTest(QObject *parent)
: QObject(parent)
{
QStandardPaths::setTestModeEnabled(true);
}
SieveEditorConfigureDialogTest::~SieveEditorConfigureDialogTest()
......@@ -29,4 +31,10 @@ SieveEditorConfigureDialogTest::~SieveEditorConfigureDialogTest()
}
void SieveEditorConfigureDialogTest::shouldHaveDefaultValue()
{
SieveEditorConfigureDialog dlg;
}
QTEST_MAIN(SieveEditorConfigureDialogTest)
......@@ -27,6 +27,9 @@ public:
explicit SieveEditorConfigureDialogTest(QObject *parent = Q_NULLPTR);
~SieveEditorConfigureDialogTest();
private Q_SLOTS:
void shouldHaveDefaultValue();
};
#endif // SIEVEEDITORCONFIGUREDIALOGTEST_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