| 13346 | } |
| 13347 | |
| 13348 | Totals execute() { |
| 13349 | auto const& invalidArgs = m_config->testSpec().getInvalidArgs(); |
| 13350 | Totals totals; |
| 13351 | m_context.testGroupStarting(m_config->name(), 1, 1); |
| 13352 | for (auto const& testCase : m_tests) { |
| 13353 | if (!m_context.aborting()) |
| 13354 | totals += m_context.runTest(*testCase); |
| 13355 | else |
| 13356 | m_context.reporter().skipTest(*testCase); |
| 13357 | } |
| 13358 | |
| 13359 | for (auto const& match : m_matches) { |
| 13360 | if (match.tests.empty()) { |
| 13361 | m_context.reporter().noMatchingTestCases(match.name); |
| 13362 | totals.error = -1; |
| 13363 | } |
| 13364 | } |
| 13365 | |
| 13366 | if (!invalidArgs.empty()) { |
| 13367 | for (auto const& invalidArg: invalidArgs) |
| 13368 | m_context.reporter().reportInvalidArguments(invalidArg); |
| 13369 | } |
| 13370 | |
| 13371 | m_context.testGroupEnded(m_config->name(), totals, 1, 1); |
| 13372 | return totals; |
| 13373 | } |
| 13374 | |
| 13375 | private: |
| 13376 | using Tests = std::set<TestCase const*>; |
no test coverage detected