summaryrefslogtreecommitdiff
path: root/src/plugins/autotest/gtest/gtestframework.h
blob: 03c8a4fc0d964fb7cfa1b6bfe21e653188f31d48 (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
// 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 "gtestconstants.h"
#include "gtestsettings.h"

namespace Autotest::Internal {

class GTestFramework : public ITestFramework
{
public:
    GTestFramework();

    static GTest::Constants::GroupMode groupMode();
    static QString currentGTestFilter();

    QStringList testNameForSymbolName(const QString &symbolName) const override;
private:
    const char *name() const override;
    QString displayName() const override;
    unsigned priority() const override;
    QString groupingToolTip() const override;
    ITestSettings *testSettings() override { return &m_settings; }
    ITestParser *createTestParser() override;
    ITestTreeItem *createRootNode() override;

    GTestSettings m_settings{settingsId()};
};

} // Autotest::Internal