AutoTest: Add automatic run after build

Add an option to automatically run tests if the build
succeeded and the current project has tests.

Change-Id: I1fe028be84279b9b488f78590565c6d4b0449e34
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
This commit is contained in:
Christian Stenger
2019-08-08 09:57:42 +02:00
parent 43e27f76b3
commit 51382a846d
8 changed files with 54 additions and 5 deletions

View File

@@ -76,6 +76,7 @@ signals:
private:
void buildProject(ProjectExplorer::Project *project);
void buildFinished(bool success);
void onBuildQueueFinished(bool success);
void onFinished();
int precheckTestConfigurations();
@@ -98,7 +99,7 @@ private:
TestConfiguration *m_currentConfig = nullptr;
QProcess *m_currentProcess = nullptr;
TestOutputReader *m_currentOutputReader = nullptr;
TestRunMode m_runMode = TestRunMode::Run;
TestRunMode m_runMode = TestRunMode::None;
// temporarily used if building before running is necessary
QMetaObject::Connection m_buildConnect;