aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest/ctest/ctesttreeitem.h
blob: 4738da6b97edf546e91af7265711417bc42cd392 (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
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0

#pragma once

#include "../testtreeitem.h"

namespace Autotest {
namespace Internal {

class CTestTreeItem final : public Autotest::ITestTreeItem
{
public:
    CTestTreeItem(ITestBase *testBase, const QString &name, const Utils::FilePath &filepath, Type type);

    QList<ITestConfiguration *> getAllTestConfigurations() const final;
    QList<ITestConfiguration *> getSelectedTestConfigurations() const final;
    QList<ITestConfiguration *> getFailedTestConfigurations() const final;
    ITestConfiguration *testConfiguration() const final;
    bool canProvideTestConfiguration() const final { return true; }

    QVariant data(int column, int role) const final;
private:
    QList<ITestConfiguration *> testConfigurationsFor(const QStringList &selected) const;
};

} // namespace Internal
} // namespace Autotest