blob: f2a906cd79ec8adcffb2029cab372b4410dd5f97 (
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
45
46
47
48
49
50
51
52
53
|
// Copyright (C) 2019 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include <coreplugin/dialogs/ioptionspage.h>
namespace Autotest::Internal {
enum class LogLevel
{
All,
Success,
TestSuite,
UnitScope,
Message,
Warning,
Error,
CppException,
SystemError,
FatalError,
Nothing
};
enum class ReportLevel
{
Confirm,
Short,
Detailed,
No
};
class BoostTestSettings : public Core::PagedSettings
{
public:
explicit BoostTestSettings(Utils::Id settingsId);
static QString logLevelToOption(const LogLevel logLevel);
static QString reportLevelToOption(const ReportLevel reportLevel);
Utils::SelectionAspect logLevel;
Utils::SelectionAspect reportLevel;
Utils::IntegerAspect seed;
Utils::BoolAspect randomize;
Utils::BoolAspect systemErrors;
Utils::BoolAspect fpExceptions;
Utils::BoolAspect memLeaks;
};
} // Autotest::Internal
Q_DECLARE_METATYPE(Autotest::Internal::LogLevel)
Q_DECLARE_METATYPE(Autotest::Internal::ReportLevel)
|