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

@@ -43,7 +43,7 @@ TestTreeItem *QuickTestFramework::createRootNode() const
const char *QuickTestFramework::name() const
{
return "QtQuickTest";
return QuickTest::Constants::FRAMEWORK_NAME;
}
unsigned QuickTestFramework::priority() const