diff options
author | Christian Stenger <christian.stenger@qt.io> | 2020-09-18 14:02:11 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2020-09-21 04:33:55 +0000 |
commit | 7fe6fb43b5518bd8d748565bbe7535c73696014e (patch) | |
tree | 1d00519a919fb4e048adbd018d88e10fa93f9110 /src/plugins/autotest | |
parent | 1b09888ba997e524efcd9cb01885d73ce563c2b6 (diff) |
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>
Diffstat (limited to 'src/plugins/autotest')
-rw-r--r-- | src/plugins/autotest/qtest/qttestresult.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/autotest/qtest/qttestresult.cpp b/src/plugins/autotest/qtest/qttestresult.cpp index a0a360651df..9aeffe414d3 100644 --- a/src/plugins/autotest/qtest/qttestresult.cpp +++ b/src/plugins/autotest/qtest/qttestresult.cpp @@ -164,7 +164,8 @@ bool QtTestResult::matches(const TestTreeItem *item) const return matchesTestCase(item); case TestTreeItem::TestFunction: 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; if (parentItem->proFile() != m_projectFile) return false; |