aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest/ctest/ctestsettings.h
blob: 2920533d0bc64e9cb6a8ef53d68f626722dde27b (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
// Copyright (C) 2021 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 <coreplugin/dialogs/ioptionspage.h>

#include <utils/aspects.h>

namespace Autotest {
namespace Internal {

class CTestSettings : public Utils::AspectContainer
{
public:
    CTestSettings();

    QStringList activeSettingsAsOptions() const;

    Utils::IntegerAspect repetitionCount;
    Utils::SelectionAspect repetitionMode;
    Utils::SelectionAspect outputMode;
    Utils::BoolAspect outputOnFail;
    Utils::BoolAspect stopOnFailure;
    Utils::BoolAspect scheduleRandom;
    Utils::BoolAspect repeat;
    // FIXME.. this makes the outputreader fail to get all results correctly for visual display
    Utils::BoolAspect parallel;
    Utils::IntegerAspect jobs;
    Utils::BoolAspect testLoad;
    Utils::IntegerAspect threshold;
};

class CTestSettingsPage final : public Core::IOptionsPage
{
public:
    CTestSettingsPage(CTestSettings *settings, Utils::Id settingsId);
};

} // namespace Internal
} // namespace Autotest