2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2016-06-01 16:22:50 +02:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2018-02-01 09:17:56 +01:00
|
|
|
#include "itestframework.h"
|
|
|
|
|
|
2016-06-01 16:22:50 +02:00
|
|
|
namespace Autotest {
|
|
|
|
|
namespace Internal {
|
2023-05-14 12:58:52 +03:00
|
|
|
class TestSettings;
|
2019-08-19 10:55:32 +02:00
|
|
|
}
|
|
|
|
|
|
2020-03-26 09:21:25 +01:00
|
|
|
class TestFrameworkManager final
|
2016-06-01 16:22:50 +02:00
|
|
|
{
|
2020-03-26 09:21:25 +01:00
|
|
|
|
2016-06-01 16:22:50 +02:00
|
|
|
public:
|
2020-03-26 09:21:25 +01:00
|
|
|
TestFrameworkManager();
|
|
|
|
|
~TestFrameworkManager();
|
|
|
|
|
|
2016-06-01 16:22:50 +02:00
|
|
|
bool registerTestFramework(ITestFramework *framework);
|
2020-10-19 14:46:21 +02:00
|
|
|
bool registerTestTool(ITestTool *testTool);
|
2023-07-06 09:57:16 +02:00
|
|
|
void synchronizeSettings();
|
2020-03-13 13:54:33 +01:00
|
|
|
|
2020-06-26 13:59:38 +02:00
|
|
|
static ITestFramework *frameworkForId(Utils::Id frameworkId);
|
2021-01-08 15:53:30 +01:00
|
|
|
static ITestTool *testToolForId(Utils::Id testToolId);
|
2020-10-19 14:46:21 +02:00
|
|
|
static ITestTool *testToolForBuildSystemId(Utils::Id buildSystemId);
|
|
|
|
|
static void activateFrameworksAndToolsFromSettings(const Internal::TestSettings *settings);
|
|
|
|
|
static const TestFrameworks registeredFrameworks();
|
|
|
|
|
static const TestTools registeredTestTools();
|
2016-06-06 15:35:00 +02:00
|
|
|
|
2020-03-26 12:01:59 +01:00
|
|
|
private:
|
2020-03-19 16:59:59 +01:00
|
|
|
TestFrameworks m_registeredFrameworks;
|
2020-10-19 14:46:21 +02:00
|
|
|
TestTools m_registeredTestTools;
|
2016-06-01 16:22:50 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Autotest
|