forked from qt-creator/qt-creator
AutoTest: Extract decision of adding filtered items
The old approach was working due to the fact that all test frameworks followed a fixed type scheme and tried to handle differences between the AutoTest plugin and the "real" world of the test framework internally. Generalizing this decision does no more make sense when adding an optional test suite layer. Change-Id: I4788150a8935d8e35e557df8475aa95c8ca545b4 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -215,7 +215,7 @@ void TestTreeModel::syncTestFrameworks()
|
||||
void TestTreeModel::filterAndInsert(TestTreeItem *item, TestTreeItem *root, bool groupingEnabled)
|
||||
{
|
||||
TestTreeItem *filtered = item->applyFilters();
|
||||
if (item->type() != TestTreeItem::TestCase || item->childCount())
|
||||
if (item->shouldBeAddedAfterFiltering())
|
||||
insertItemInParent(item, root, groupingEnabled);
|
||||
else // might be that all children have been filtered out
|
||||
delete item;
|
||||
|
||||
Reference in New Issue
Block a user