2023-10-10 13:42:50 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
class TestsRunner : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit TestsRunner(const QString& testRunnerExecutablePath,
|
|
|
|
const QString& testsPath, QObject *parent = nullptr);
|
|
|
|
|
|
|
|
Q_INVOKABLE int testsCount(const QString& path);
|
|
|
|
Q_INVOKABLE QObject* runTests(const QString& path);
|
2023-10-10 14:14:02 +00:00
|
|
|
Q_INVOKABLE QString testsPath() const;
|
2023-10-10 13:42:50 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
QString m_testRunnerExecutablePath;
|
|
|
|
QString m_testsBasePath;
|
|
|
|
};
|