diff options
author | Christian Stenger <christian.stenger@qt.io> | 2020-09-24 09:34:22 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2020-09-29 10:18:47 +0000 |
commit | af9d8768dcc4d36fffdbe1342b6a1e978709af2b (patch) | |
tree | dc136bd1519da3053eb6b22bcdd7786746c3d446 | |
parent | ee601e548ec90cd9b069b1cf8987bb2ba9f92ee4 (diff) |
AutoTest: Fix marking for removal and sweeping of Quick Tests
If opening and editing a QML file we did no more mark tests of this
file as to be removed. In turn we may have got "new" items when e.g.
just modifying the name of a function or test case and but did not lose
the old one.
Broke with 90fd6870c5a.
Change-Id: I86917089ffb9d4acb2f735f2f3e0f112d8cdc65a
Reviewed-by: David Schulz <david.schulz@qt.io>
-rw-r--r-- | src/plugins/autotest/quick/quicktesttreeitem.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/autotest/quick/quicktesttreeitem.cpp b/src/plugins/autotest/quick/quicktesttreeitem.cpp index 5c6cf57aa9..b70c46b0e4 100644 --- a/src/plugins/autotest/quick/quicktesttreeitem.cpp +++ b/src/plugins/autotest/quick/quicktesttreeitem.cpp @@ -428,6 +428,7 @@ QSet<QString> QuickTestTreeItem::internalTargets() const void QuickTestTreeItem::markForRemovalRecursively(const QString &filePath) { + TestTreeItem::markForRemovalRecursively(filePath); auto parser = dynamic_cast<QuickTestParser *>(framework()->testParser()); const QString proFile = parser->projectFileForMainCppFile(filePath); if (!proFile.isEmpty()) { |