AutoTest: Enable debugging for Quick Tests

Task-number: QTCREATORBUG-18961
Change-Id: I6f00c84ea6279ceb59745e5bb12349511ae4637b
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2017-09-29 15:01:32 +02:00
parent c2686fd9ae
commit faee18d31e
7 changed files with 37 additions and 9 deletions

View File

@@ -52,10 +52,12 @@ public:
initialize("AutoTest.TestRunConfig");
setDefaultDisplayName(tr("AutoTest Debug"));
// disable QmlDebugger that is enabled by default
// might change if debugging QuickTest gets enabled
bool enableQuick = false;
if (auto debuggable = dynamic_cast<DebuggableTestConfiguration *>(config))
enableQuick = debuggable->mixedDebugging();
if (auto debugAspect = extraAspect<Debugger::DebuggerRunConfigurationAspect>())
debugAspect->setUseQmlDebugger(false);
debugAspect->setUseQmlDebugger(enableQuick);
m_testConfig = config;
}