| 97 | } |
| 98 | |
| 99 | void TestRegistry::listTestGroupAndCaseNames(TestResult& result) |
| 100 | { |
| 101 | SimpleString groupAndNameList; |
| 102 | |
| 103 | for (UtestShell *test = tests_; test != NULLPTR; test = test->getNext()) { |
| 104 | if (testShouldRun(test, result)) { |
| 105 | SimpleString groupAndName; |
| 106 | groupAndName += "#"; |
| 107 | groupAndName += test->getGroup(); |
| 108 | groupAndName += "."; |
| 109 | groupAndName += test->getName(); |
| 110 | groupAndName += "#"; |
| 111 | |
| 112 | if (!groupAndNameList.contains(groupAndName)) { |
| 113 | groupAndNameList += groupAndName; |
| 114 | groupAndNameList += " "; |
| 115 | } |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | groupAndNameList.replace("#", ""); |
| 120 | |
| 121 | if (groupAndNameList.endsWith(" ")) |
| 122 | groupAndNameList = groupAndNameList.subString(0, groupAndNameList.size() - 1); |
| 123 | result.print(groupAndNameList.asCharString()); |
| 124 | } |
| 125 | |
| 126 | bool TestRegistry::endOfGroup(UtestShell* test) |
| 127 | { |