Commit 645fbeb9 authored by Christoph Cullmann's avatar Christoph Cullmann 🍨
Browse files

avoid some unit test warnings

parent 68833005
Pipeline #257926 failed with stage
in 7 minutes and 33 seconds
......@@ -8,6 +8,7 @@
#include "kateviewspace.h"
#include "ktexteditor_utils.h"
#include <KLocalizedString>
#include <KTextEditor/Editor>
#include <QCommandLineParser>
......@@ -24,6 +25,10 @@ static bool viewspaceContainsView(KateViewSpace *vs, KTextEditor::View *v)
KateViewManagementTests::KateViewManagementTests(QObject *)
{
// ensure ui file can be found and the translation domain is set to avoid warnings
qApp->setApplicationName(QStringLiteral("kate"));
KLocalizedString::setApplicationDomain("kate");
m_tempdir = new QTemporaryDir;
QVERIFY(m_tempdir->isValid());
......
......@@ -14,11 +14,17 @@
#include <QTemporaryDir>
#include <QTest>
#include <KLocalizedString>
QTEST_MAIN(LocationHistoryTest)
LocationHistoryTest::LocationHistoryTest(QObject *parent)
: QObject(parent)
{
// ensure ui file can be found and the translation domain is set to avoid warnings
qApp->setApplicationName(QStringLiteral("kate"));
KLocalizedString::setApplicationDomain("kate");
m_tempdir = new QTemporaryDir;
QVERIFY(m_tempdir->isValid());
......
......@@ -9,6 +9,7 @@
#include "katesessionmanager.h"
#include <KConfig>
#include <KLocalizedString>
#include <QCommandLineParser>
#include <QTemporaryDir>
......@@ -18,6 +19,10 @@ QTEST_MAIN(KateSessionManagerTest)
KateSessionManagerTest::KateSessionManagerTest()
{
// ensure ui file can be found and the translation domain is set to avoid warnings
qApp->setApplicationName(QStringLiteral("kate"));
KLocalizedString::setApplicationDomain("kate");
m_tempdir = new QTemporaryDir;
QVERIFY(m_tempdir->isValid());
......
......@@ -15,10 +15,16 @@
#include <QTemporaryDir>
#include <QtTestWidgets>
#include <KLocalizedString>
QTEST_MAIN(KateSessionsActionTest)
KateSessionsActionTest::KateSessionsActionTest()
{
// ensure ui file can be found and the translation domain is set to avoid warnings
qApp->setApplicationName(QStringLiteral("kate"));
KLocalizedString::setApplicationDomain("kate");
m_tempdir = new QTemporaryDir;
QVERIFY(m_tempdir->isValid());
......
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