forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user