forked from qt-creator/qt-creator
AutoTest: Fix re-running failed data-driven QuickTests
QuickTests are not displayed inside the Tests tree which makes marking them as failed or trying to run these tests from the results pane impossible. Work around by treating them as functions to re-run the whole function instead of a single data tag if this happens. Change-Id: I92f6403ff0e02302c52184d4403f0194226a9989 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -164,7 +164,8 @@ bool QtTestResult::matches(const TestTreeItem *item) const
|
|||||||
return matchesTestCase(item);
|
return matchesTestCase(item);
|
||||||
case TestTreeItem::TestFunction:
|
case TestTreeItem::TestFunction:
|
||||||
case TestTreeItem::TestSpecialFunction:
|
case TestTreeItem::TestSpecialFunction:
|
||||||
if (!isTestFunction())
|
// QuickTest data tags have no dedicated TestTreeItem, so treat these results as function
|
||||||
|
if (!isTestFunction() && !(m_type == TestType::QuickTest && isDataTag()))
|
||||||
return false;
|
return false;
|
||||||
if (parentItem->proFile() != m_projectFile)
|
if (parentItem->proFile() != m_projectFile)
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user