2016-06-01 16:22:50 +02:00
|
|
|
/****************************************************************************
|
|
|
|
|
**
|
|
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
|
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator.
|
|
|
|
|
**
|
|
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
|
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
|
|
|
|
**
|
|
|
|
|
** GNU General Public License Usage
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
|
|
|
** General Public License version 3 as published by the Free Software
|
|
|
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
|
|
|
** included in the packaging of this file. Please review the following
|
|
|
|
|
** information to ensure the GNU General Public License requirements will
|
|
|
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
|
|
|
|
**
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2018-02-01 09:17:56 +01:00
|
|
|
#include "itestframework.h"
|
|
|
|
|
|
2016-10-05 12:39:23 +02:00
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
class QSettings;
|
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
2016-06-01 16:22:50 +02:00
|
|
|
namespace Autotest {
|
|
|
|
|
namespace Internal {
|
2019-08-19 10:55:32 +02:00
|
|
|
struct TestSettings;
|
|
|
|
|
}
|
|
|
|
|
|
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);
|
2016-10-05 12:39:23 +02:00
|
|
|
void synchronizeSettings(QSettings *s);
|
2020-03-13 13:54:33 +01:00
|
|
|
|
2020-06-26 13:59:38 +02:00
|
|
|
static ITestFramework *frameworkForId(Utils::Id frameworkId);
|
2020-03-26 12:01:59 +01:00
|
|
|
static void activateFrameworksFromSettings(const Internal::TestSettings *settings);
|
|
|
|
|
static TestFrameworks registeredFrameworks();
|
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;
|
2016-06-01 16:22:50 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Autotest
|