AutoTest: Disable QmlDebugger for debugging tests

Currently debugging tests is enabled only for C++ based projects
and starting QmlDebugger although not needed feels wrong and results
additionally in a fail message which might be confusing for users.

Change-Id: I1f62b67ea6d3d8bb56d9723ea1132257d0b96b9b
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
Christian Stenger
2016-06-23 09:32:32 +02:00
parent 8f474cbfbe
commit 8219188738

View File

@@ -34,6 +34,7 @@
#include <projectexplorer/runconfiguration.h> #include <projectexplorer/runconfiguration.h>
#include <projectexplorer/runnables.h> #include <projectexplorer/runnables.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <debugger/debuggerrunconfigurationaspect.h>
namespace Autotest { namespace Autotest {
namespace Internal { namespace Internal {
@@ -46,6 +47,11 @@ public:
{ {
setDefaultDisplayName(tr("AutoTest Debug")); setDefaultDisplayName(tr("AutoTest Debug"));
addExtraAspects(); addExtraAspects();
// disable QmlDebugger that is enabled by default
// might change if debugging QuickTest gets enabled
if (auto debugAspect = extraAspect<Debugger::DebuggerRunConfigurationAspect>())
debugAspect->setUseQmlDebugger(false);
m_testConfig = config; m_testConfig = config;
} }