| 44 | } |
| 45 | |
| 46 | void TestRegistry::runAllTests(TestResult& result) |
| 47 | { |
| 48 | bool groupStart = true; |
| 49 | |
| 50 | result.testsStarted(); |
| 51 | for (UtestShell *test = tests_; test != NULLPTR; test = test->getNext()) { |
| 52 | if (runInSeperateProcess_) test->setRunInSeperateProcess(); |
| 53 | if (runIgnored_) test->setRunIgnored(); |
| 54 | |
| 55 | if (groupStart) { |
| 56 | result.currentGroupStarted(test); |
| 57 | groupStart = false; |
| 58 | } |
| 59 | |
| 60 | result.countTest(); |
| 61 | if (testShouldRun(test, result)) { |
| 62 | result.currentTestStarted(test); |
| 63 | test->runOneTest(firstPlugin_, result); |
| 64 | result.currentTestEnded(test); |
| 65 | } |
| 66 | |
| 67 | if (endOfGroup(test)) { |
| 68 | groupStart = true; |
| 69 | result.currentGroupEnded(test); |
| 70 | } |
| 71 | } |
| 72 | result.testsEnded(); |
| 73 | currentRepetition_++; |
| 74 | } |
| 75 | |
| 76 | void TestRegistry::listTestGroupNames(TestResult& result) |
| 77 | { |
no test coverage detected