Commit 60f1397b authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

avoid plugin loading to speedup tests

parent 6559dc82
Pipeline #170173 passed with stage
in 3 minutes and 55 seconds
......@@ -22,8 +22,9 @@ LocationHistoryTest::LocationHistoryTest(QObject *parent)
m_tempdir = new QTemporaryDir;
QVERIFY(m_tempdir->isValid());
// create KWrite variant to avoid plugin loading!
static QCommandLineParser parser;
app = new KateApp(parser, KateApp::ApplicationKate, m_tempdir->path());
app = new KateApp(parser, KateApp::ApplicationKWrite, m_tempdir->path());
app->sessionManager()->activateAnonymousSession();
// create some usable example
......
......@@ -22,9 +22,9 @@ KateSessionManagerTest::KateSessionManagerTest()
m_tempdir = new QTemporaryDir;
QVERIFY(m_tempdir->isValid());
// we need an application object, as session loading will trigger modifications to that
// create KWrite variant to avoid plugin loading!
static QCommandLineParser parser;
m_app = new KateApp(parser, KateApp::ApplicationKate, m_tempdir->path());
m_app = new KateApp(parser, KateApp::ApplicationKWrite, m_tempdir->path());
m_app->sessionManager()->activateAnonymousSession();
m_manager = m_app->sessionManager();
}
......
......@@ -22,9 +22,9 @@ KateSessionsActionTest::KateSessionsActionTest()
m_tempdir = new QTemporaryDir;
QVERIFY(m_tempdir->isValid());
// we need an application object, as session loading will trigger modifications to that
// create KWrite variant to avoid plugin loading!
static QCommandLineParser parser;
m_app = new KateApp(parser, KateApp::ApplicationKate, m_tempdir->path());
m_app = new KateApp(parser, KateApp::ApplicationKWrite, m_tempdir->path());
m_app->sessionManager()->activateAnonymousSession();
m_manager = m_app->sessionManager();
m_ac = new KateSessionsAction(QStringLiteral("menu"), this, m_manager, false);
......
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