forked from qt-creator/qt-creator
AutoTest: Merge settings and tools hierarchies [1/2]
Currently living in the settings files to keep changes small, will be renamed in a second step. This allows the settings aspects to be used in their short form and overall removes some indirections. Change-Id: I099369b62239aed8192613a04bca958a660c36c7 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -67,21 +67,19 @@ QStringList GTestConfiguration::argumentsForTestRunner(QStringList *omitted) con
|
||||
arguments << "--gtest_filter=\"" + testSets.join(':') + '"';
|
||||
}
|
||||
|
||||
auto gSettings = static_cast<GTestSettings *>(framework()->testSettings());
|
||||
if (!gSettings)
|
||||
return arguments;
|
||||
GTestFramework &gSettings = *static_cast<GTestFramework *>(framework());
|
||||
|
||||
if (gSettings->runDisabled.value())
|
||||
if (gSettings.runDisabled())
|
||||
arguments << "--gtest_also_run_disabled_tests";
|
||||
if (gSettings->repeat.value())
|
||||
arguments << QString("--gtest_repeat=%1").arg(gSettings->iterations.value());
|
||||
if (gSettings->shuffle.value())
|
||||
arguments << "--gtest_shuffle" << QString("--gtest_random_seed=%1").arg(gSettings->seed.value());
|
||||
if (gSettings->throwOnFailure.value())
|
||||
if (gSettings.repeat())
|
||||
arguments << QString("--gtest_repeat=%1").arg(gSettings.iterations());
|
||||
if (gSettings.shuffle())
|
||||
arguments << "--gtest_shuffle" << QString("--gtest_random_seed=%1").arg(gSettings.seed());
|
||||
if (gSettings.throwOnFailure())
|
||||
arguments << "--gtest_throw_on_failure";
|
||||
|
||||
if (isDebugRunMode()) {
|
||||
if (gSettings->breakOnFailure.value())
|
||||
if (gSettings.breakOnFailure())
|
||||
arguments << "--gtest_break_on_failure";
|
||||
arguments << "--gtest_catch_exceptions=0";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user