forked from qt-creator/qt-creator
Distinguish between parameterized and unparameterized google tests
This additionally fixes an issue when trying to execute a parameterized google test by invoking 'Run This Test' or using 'Run Selected Tests'. Change-Id: I199effcf76b34efd1a041c9a38b5bf90cdc002f8 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
This commit is contained in:
committed by
Niels Weber
parent
2b414536a0
commit
cbdf48a792
@@ -380,7 +380,10 @@ bool GTestVisitor::visit(CPlusPlus::FunctionDefinitionAST *ast)
|
||||
locationAndType.m_column = column - 1;
|
||||
locationAndType.m_type = disabled ? TestTreeItem::GTestNameDisabled
|
||||
: TestTreeItem::GTestName;
|
||||
m_gtestFunctions[testCaseName].append(locationAndType);
|
||||
GTestCaseSpec spec;
|
||||
spec.testCaseName = testCaseName;
|
||||
spec.parameterized = TestUtils::isGTestParameterized(prettyName);
|
||||
m_gtestFunctions[spec].append(locationAndType);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user