forked from qt-creator/qt-creator
AutoTest: Improve matching test results to tree item
...when using Boost UTF. We need to take parameterized and templated tests into account differently and we may have results that do not provide file information at all, so try to find a matching tree item from what we have got. Change-Id: Ia0b1894d5dd729d39e5724d9fdeadd574a9cfde5 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -240,7 +240,7 @@ QList<TestConfiguration *> BoostTestTreeItem::getTestConfigurations(
|
||||
if (item->state().testFlag(BoostTestTreeItem::Templated))
|
||||
tcName.append("<*");
|
||||
else if (item->state().testFlag(BoostTestTreeItem::Parameterized))
|
||||
tcName.append('*');
|
||||
tcName.append("_*");
|
||||
tcName = handleSpecialFunctionNames(tcName);
|
||||
testCasesForProjectFile[item->proFile()].testCases.append(
|
||||
item->prependWithParentsSuitePaths(tcName));
|
||||
@@ -293,7 +293,7 @@ TestConfiguration *BoostTestTreeItem::testConfiguration() const
|
||||
if (boostItem->type() == TestSuite) // execute everything below a suite
|
||||
tcName.append("/*");
|
||||
else if (boostItem->state().testFlag(BoostTestTreeItem::Parameterized))
|
||||
tcName.append('*');
|
||||
tcName.append("_*");
|
||||
else if (boostItem->state().testFlag(BoostTestTreeItem::Templated))
|
||||
tcName.append("<*");
|
||||
testCases.append(boostItem->prependWithParentsSuitePaths(tcName));
|
||||
@@ -305,7 +305,7 @@ TestConfiguration *BoostTestTreeItem::testConfiguration() const
|
||||
if (state().testFlag(BoostTestTreeItem::Templated))
|
||||
tcName.append("<*");
|
||||
else if (state().testFlag(BoostTestTreeItem::Parameterized))
|
||||
tcName.append('*');
|
||||
tcName.append("_*");
|
||||
testCases.append(prependWithParentsSuitePaths(handleSpecialFunctionNames(tcName)));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user