| 74 | } |
| 75 | |
| 76 | void TestRegistry::listTestGroupNames(TestResult& result) |
| 77 | { |
| 78 | SimpleString groupList; |
| 79 | |
| 80 | for (UtestShell *test = tests_; test != NULLPTR; test = test->getNext()) { |
| 81 | SimpleString gname; |
| 82 | gname += "#"; |
| 83 | gname += test->getGroup(); |
| 84 | gname += "#"; |
| 85 | |
| 86 | if (!groupList.contains(gname)) { |
| 87 | groupList += gname; |
| 88 | groupList += " "; |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | groupList.replace("#", ""); |
| 93 | |
| 94 | if (groupList.endsWith(" ")) |
| 95 | groupList = groupList.subString(0, groupList.size() - 1); |
| 96 | result.print(groupList.asCharString()); |
| 97 | } |
| 98 | |
| 99 | void TestRegistry::listTestGroupAndCaseNames(TestResult& result) |
| 100 | { |