| 172 | } |
| 173 | |
| 174 | bool CommandLineTestRunner::parseArguments(TestPlugin* plugin) |
| 175 | { |
| 176 | if (!arguments_->parse(plugin)) { |
| 177 | output_ = createConsoleOutput(); |
| 178 | output_->print((arguments_->needHelp()) ? arguments_->help() : arguments_->usage()); |
| 179 | return false; |
| 180 | } |
| 181 | |
| 182 | if (arguments_->isJUnitOutput()) { |
| 183 | output_= createJUnitOutput(arguments_->getPackageName()); |
| 184 | if (arguments_->isVerbose()) |
| 185 | output_ = createCompositeOutput(output_, createConsoleOutput()); |
| 186 | } else if (arguments_->isTeamCityOutput()) { |
| 187 | output_ = createTeamCityOutput(); |
| 188 | } else |
| 189 | output_ = createConsoleOutput(); |
| 190 | return true; |
| 191 | } |
| 192 |
nothing calls this directly
no test coverage detected