diff options
author | Christian Stenger <christian.stenger@qt.io> | 2019-03-13 11:05:22 +0100 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2019-03-20 05:49:33 +0000 |
commit | 6dee2dc01920d9f65e1cf31c312bf55bcd69a85b (patch) | |
tree | f5c667f48a0b94639642cbf12632487bb6741a98 /src/plugins/autotest/testsettings.cpp | |
parent | 5944c7f0f65ed2aec4dedb904ec834b3d10f88a6 (diff) |
AutoTest: Make automatic popup of results pane configurable
Let the test results pane automatically popup before the
first test result is added to indicate running the tests
has started.
Beside this provide settings for enabling or disabling
the popup of the results pane on start or finish of a
test run and make it possible to limit the automatic
popup on finish to failed test runs.
Change-Id: Ib22735536effd9f2330b39a7d2830c97839eb21f
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/autotest/testsettings.cpp')
-rw-r--r-- | src/plugins/autotest/testsettings.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/autotest/testsettings.cpp b/src/plugins/autotest/testsettings.cpp index 49e028d41da..ddb4f49e81b 100644 --- a/src/plugins/autotest/testsettings.cpp +++ b/src/plugins/autotest/testsettings.cpp @@ -41,6 +41,9 @@ static const char limitResultOutputKey[] = "LimitResultOutput"; static const char autoScrollKey[] = "AutoScrollResults"; static const char processArgsKey[] = "ProcessArgs"; static const char displayApplicationKey[] = "DisplayApp"; +static const char popupOnStartKey[] = "PopupOnStart"; +static const char popupOnFinishKey[] = "PopupOnFinish"; +static const char popupOnFailKey[] = "PopupOnFail"; static const char groupSuffix[] = ".group"; constexpr int defaultTimeout = 60000; @@ -60,6 +63,9 @@ void TestSettings::toSettings(QSettings *s) const s->setValue(autoScrollKey, autoScroll); s->setValue(processArgsKey, processArgs); s->setValue(displayApplicationKey, displayApplication); + s->setValue(popupOnStartKey, popupOnStart); + s->setValue(popupOnFinishKey, popupOnFinish); + s->setValue(popupOnFailKey, popupOnFail); // store frameworks and their current active and grouping state for (const Core::Id &id : frameworks.keys()) { s->setValue(QLatin1String(id.name()), frameworks.value(id)); @@ -78,6 +84,9 @@ void TestSettings::fromSettings(QSettings *s) autoScroll = s->value(autoScrollKey, true).toBool(); processArgs = s->value(processArgsKey, false).toBool(); displayApplication = s->value(displayApplicationKey, false).toBool(); + popupOnStart = s->value(popupOnStartKey, true).toBool(); + popupOnFinish = s->value(popupOnFinishKey, true).toBool(); + popupOnFail = s->value(popupOnFailKey, false).toBool(); // try to get settings for registered frameworks TestFrameworkManager *frameworkManager = TestFrameworkManager::instance(); const QList<Core::Id> ®istered = frameworkManager->registeredFrameworkIds(); |