AutoTest: Add possibility to trigger test run from source

Change-Id: Iceed69747de64d76f34451d41f719c8dbdd81e44
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Pawel Rutka
2018-02-16 17:57:37 +01:00
committed by pawelrutka
parent 190c5083b7
commit c8f1da095d
10 changed files with 132 additions and 18 deletions

View File

@@ -236,6 +236,20 @@ TestTreeItem *TestTreeItem::findChildByNameAndFile(const QString &name, const QS
});
}
TestConfiguration *TestTreeItem::asConfiguration(TestRunMode mode) const
{
switch (mode) {
case TestRunMode::Run:
case TestRunMode::RunWithoutDeploy:
return testConfiguration();
case TestRunMode::Debug:
case TestRunMode::DebugWithoutDeploy:
return debugConfiguration();
default:
return nullptr;
}
}
QList<TestConfiguration *> TestTreeItem::getAllTestConfigurations() const
{
return QList<TestConfiguration *>();