aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest/autotestplugin.h
blob: a70066813d96d9be9b0dba61c99a84bea299897a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include "itestframework.h"

#include <utils/filepath.h>

namespace ProjectExplorer {
class Project;
class RunConfiguration;
}

namespace Autotest::Internal {

class TestProjectSettings;

struct ChoicePair
{
    explicit ChoicePair(const QString &name = {}, const Utils::FilePath &exe = {})
        : displayName(name), executable(exe) {}
    bool matches(const ProjectExplorer::RunConfiguration *rc) const;

    QString displayName;
    Utils::FilePath executable;
};

TestProjectSettings *projectSettings(ProjectExplorer::Project *project);
TestFrameworks activeTestFrameworks();
void updateMenuItemsEnabledState();
void cacheRunConfigChoice(const QString &buildTargetKey, const ChoicePair &choice);
ChoicePair cachedChoiceFor(const QString &buildTargetKey);
void clearChoiceCache();
void popupResultsPane();


} // Autotest::Internal