aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest/ctest/ctestsettings.h
blob: 77de6b0aac843ca2209cbd1c94ca17d7b68650ee (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
// Copyright (C) 2021 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  {

class CTestSettings : public Core::PagedSettings
{
public:
    explicit CTestSettings(Utils::Id settingsId);

    QStringList activeSettingsAsOptions() const;

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

} // Autotest::Internal