forked from qt-creator/qt-creator
AutoTest: Allow registering ITestTools
Task-number: QTCREATORBUG-23332 Change-Id: I529b1cc1f110739c264c7a021aada063f697b1db Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -74,6 +74,9 @@ void TestSettings::toSettings(QSettings *s) const
|
||||
s->setValue(id.toString(), frameworks.value(id));
|
||||
s->setValue(id.toString() + groupSuffix, frameworksGrouping.value(id));
|
||||
}
|
||||
// ..and the testtools as well
|
||||
for (const Utils::Id &id : tools.keys())
|
||||
s->setValue(id.toString(), tools.value(id));
|
||||
s->endGroup();
|
||||
}
|
||||
|
||||
@@ -104,6 +107,13 @@ void TestSettings::fromSettings(QSettings *s)
|
||||
// and whether grouping is enabled
|
||||
frameworksGrouping.insert(id, s->value(key + groupSuffix, framework->grouping()).toBool());
|
||||
}
|
||||
// ..and for test tools as well
|
||||
const TestTools ®isteredTools = TestFrameworkManager::registeredTestTools();
|
||||
tools.clear();
|
||||
for (const ITestTool *testTool : registeredTools) {
|
||||
const Utils::Id id = testTool->id();
|
||||
tools.insert(id, s->value(id.toString(), testTool->active()).toBool());
|
||||
}
|
||||
s->endGroup();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user