TestRunner: Merge 2 public methods into one

Merge setSelectedTests() and prepareToRunTests() into runTests().

Change-Id: I908c41483f05eeaec186f362391941a797d66e6a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Jarek Kobus
2023-01-13 12:30:42 +01:00
parent c9f5098c07
commit fdebf0343d
4 changed files with 21 additions and 36 deletions

View File

@@ -42,12 +42,10 @@ public:
static TestRunner* instance();
void setSelectedTests(const QList<ITestConfiguration *> &selected);
void runTests(TestRunMode mode, const QList<ITestConfiguration *> &selectedTests);
void runTest(TestRunMode mode, const ITestTreeItem *item);
bool isTestRunning() const { return m_executingTests; }
void prepareToRunTests(TestRunMode mode);
signals:
void testRunStarted();
void testRunFinished();
@@ -71,7 +69,7 @@ private:
void onProcessDone();
void resetInternalPointers();
void runTests();
void runTestsHelper();
void debugTests();
void runOrDebugTests();
void reportResult(ResultType type, const QString &description);