Commit 098f3256 authored by Nikita Sirgienko's avatar Nikita Sirgienko
Browse files

Improve tests: now tests will be automatically found plugins

parent 3d9666d7
......@@ -22,12 +22,20 @@
#include "backend.h"
#include "session.h"
#include "../../config-cantor.h"
#include <KLocalizedString>
#include <QSignalSpy>
#include <QDebug>
void BackendTest::createSession()
// Add our custom plugins path, where we install our plugins, if it isn't default path
const QString& path = QString::fromLocal8Bit(PATH_TO_CANTOR_PLUGINS);
qDebug() << "Adding additional application library path" << path;
if (!QCoreApplication::libraryPaths().contains(path))
Cantor::Backend* b=Cantor::Backend::getBackend( backendName() );
if(!b || !b->requirementsFullfilled() )
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