| 350 | } |
| 351 | |
| 352 | void scanTestFiles(const std::string& path) { |
| 353 | if (std::filesystem::is_regular_file(path)) { |
| 354 | parseAndRegisterTestGroup(path); |
| 355 | return; |
| 356 | } |
| 357 | for (const auto& entry : std::filesystem::recursive_directory_iterator(path)) { |
| 358 | if (!entry.is_regular_file() || std::filesystem::path(entry).extension() != ".test") |
| 359 | continue; |
| 360 | parseAndRegisterTestGroup(entry.path().string(), true); |
| 361 | } |
| 362 | } |
| 363 | |
| 364 | std::string findTestFile(const std::string& testCase) { |
| 365 | std::ifstream infile(TestHelper::getTestListFile()); |
no test coverage detected