| 1270 | } |
| 1271 | |
| 1272 | Totals execute() { |
| 1273 | Totals totals; |
| 1274 | for (auto const& testCase : m_tests) { |
| 1275 | if (!m_context.aborting()) |
| 1276 | totals += m_context.runTest(*testCase); |
| 1277 | else |
| 1278 | m_reporter->skipTest(testCase->getTestCaseInfo()); |
| 1279 | } |
| 1280 | |
| 1281 | for (auto const& match : m_matches) { |
| 1282 | if (match.tests.empty()) { |
| 1283 | m_unmatchedTestSpecs = true; |
| 1284 | m_reporter->noMatchingTestCases( match.name ); |
| 1285 | } |
| 1286 | } |
| 1287 | |
| 1288 | return totals; |
| 1289 | } |
| 1290 | |
| 1291 | bool hadUnmatchedTestSpecs() const { |
| 1292 | return m_unmatchedTestSpecs; |
no test coverage detected