aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest/qtest/qttestframework.h
blob: 0e1756945829588b79e90f3b38ec0e50b01df4ff (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
39
40
41
42
43
44
// 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"

namespace Autotest::Internal {

enum MetricsType
{
    Walltime,
    TickCounter,
    EventCounter,
    CallGrind,
    Perf
};

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

    static QString metricsTypeToOption(const MetricsType type);

    Utils::SelectionAspect metrics{this};
    Utils::BoolAspect noCrashHandler{this};
    Utils::BoolAspect useXMLOutput{this};
    Utils::BoolAspect verboseBench{this};
    Utils::BoolAspect logSignalsSlots{this};
    Utils::BoolAspect limitWarnings{this};
    Utils::IntegerAspect maxWarnings{this};
    Utils::BoolAspect quickCheckForDerivedTests{this};
    Utils::BoolAspect parseMessages{this};

    QStringList testNameForSymbolName(const QString &symbolName) const override;

    ITestParser *createTestParser() override;
    ITestTreeItem *createRootNode() override;
};

QtTestFramework &theQtTestFramework();

} // Autotest::Internal