AutoTest: Limit search for test tree items to respective root

If searching for a test tree item matching a QtTestResult
we can safely limit searching to the subtree holding
QtTests or QuickTests.
Additionally store information whether it is a Quick or
pure Qt test into the result to limit it to a single root.

Change-Id: I240e778448d99434d188d90a110dfa4f1934c950
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2017-10-25 14:31:57 +02:00
parent eaf4b67461
commit e412a800b0
9 changed files with 66 additions and 26 deletions

View File

@@ -45,10 +45,13 @@ TestOutputReader *QtTestConfiguration::outputReader(const QFutureInterface<TestR
if (qtSettings.isNull())
return nullptr;
if (qtSettings->useXMLOutput)
return new QtTestOutputReader(fi, app, buildDirectory(), projectFile(), QtTestOutputReader::XML);
else
return new QtTestOutputReader(fi, app, buildDirectory(), projectFile(), QtTestOutputReader::PlainText);
if (qtSettings->useXMLOutput) {
return new QtTestOutputReader(fi, app, buildDirectory(), projectFile(),
QtTestOutputReader::XML, TestType::QtTest);
} else {
return new QtTestOutputReader(fi, app, buildDirectory(), projectFile(),
QtTestOutputReader::PlainText, TestType::QtTest);
}
}
QStringList QtTestConfiguration::argumentsForTestRunner(QStringList *omitted) const