diff --git a/src/plugins/autotest/boost/boostcodeparser.cpp b/src/plugins/autotest/boost/boostcodeparser.cpp index 43af677159b..95d8ac6be6b 100644 --- a/src/plugins/autotest/boost/boostcodeparser.cpp +++ b/src/plugins/autotest/boost/boostcodeparser.cpp @@ -133,6 +133,7 @@ void BoostCodeParser::handleSuiteBegin(bool isFixture) m_currentSuite.prepend(m_suites.last().fullName + '/'); if (isFixture) { // fixture suites have a (fixture) class name as 2nd parameter + m_currentState.setFlag(BoostTestTreeItem::Fixture); if (!skipCommentsUntil(T_COMMA)) return; if (!skipCommentsUntil(T_IDENTIFIER)) @@ -279,8 +280,11 @@ void BoostCodeParser::handleDecorators() } else { // FIXME we have a const(expr) bool? currently not easily achievable } + } else if (symbolName == "decorator::fixture" + || (aliasedOrReal && simplifiedName.startsWith("::fixture"))){ + m_currentState.setFlag(BoostTestTreeItem::Fixture); } - // TODO.. fixture, label, depends_on, label, precondition, timeout,... + // TODO.. depends_on, label, precondition, timeout,... skipCommentsUntil(T_LPAREN); skipCommentsUntil(T_RPAREN);