Files
Igor Malinovskiy 05fa28f1a7 Revive unit and integration tests
- Use fakeit for mocks
- Repair all unit tests
- Create env for QML integration tests
- Add intergration test for MultilineEditor
- Replace ModelTest with QAbstractItemModelTester
2022-02-03 14:59:28 +02:00

30 lines
517 B
C++

#pragma once
#include <QtQuickTest>
#include <QQmlEngine>
#include <QQmlContext>
#include <QSharedPointer>
#include <QQuickTextDocument>
#include "app/qmlutils.h"
class TestUtils : public QObject
{
Q_OBJECT
public:
Q_INVOKABLE void removeAppSetting(const QString& category);
};
class Setup : public QObject
{
Q_OBJECT
public:
Setup() {}
public slots:
void qmlEngineAvailable(QQmlEngine *engine);
private:
QSharedPointer<QmlUtils> m_qmlUtils;
QSharedPointer<TestUtils> m_testUtils;
};