AutoTest: Allow run/debug without deployment

Task-number: QTCREATORBUG-16486
Change-Id: I7ef5887e065830152744a9bd7d7727058b4521d9
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
Christian Stenger
2016-06-27 11:07:16 +02:00
parent 5dcf23f62d
commit e70adf820e
3 changed files with 29 additions and 4 deletions

View File

@@ -256,7 +256,8 @@ void TestRunner::prepareToRunTests(Mode mode)
return;
}
if (!projectExplorerSettings.buildBeforeDeploy) {
if (!projectExplorerSettings.buildBeforeDeploy || mode == TestRunner::DebugWithoutDeploy
|| mode == TestRunner::RunWithoutDeploy) {
runOrDebugTests();
} else {
if (project->hasActiveBuildSettings()) {
@@ -332,9 +333,11 @@ void TestRunner::runOrDebugTests()
{
switch (m_runMode) {
case Run:
case RunWithoutDeploy:
runTests();
break;
case Debug:
case DebugWithoutDeploy:
debugTests();
break;
default: