forked from qt-creator/qt-creator
AutoTest: Adapt Type enum
Follow the official terms used by the test frameworks. In detail this means Google test now uses TestSuite and TestCase and the value for a normal function has been simplified to TestFunction. Beside the visual change there is no change in functionality. Change-Id: Idf541d07fa3469e04a699d46f4625ff9075d5b6f Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -178,7 +178,7 @@ QList<TestTreeItem *> TestTreeModel::testItemsByName(TestTreeItem *root, const Q
|
||||
}
|
||||
TestTreeItem *testCase = node->findFirstLevelChild([&testName](TestTreeItem *it) {
|
||||
QTC_ASSERT(it, return false);
|
||||
return it->type() == TestTreeItem::TestFunctionOrSet && it->name() == testName;
|
||||
return it->type() == TestTreeItem::TestFunction && it->name() == testName;
|
||||
}); // collect only actual tests, not special functions like init, cleanup etc.
|
||||
if (testCase)
|
||||
result << testCase;
|
||||
|
||||
Reference in New Issue
Block a user