OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 // TODO(nweiz): This is under lib so that it can be used by the unittest dummy | 5 // TODO(nweiz): This is under lib so that it can be used by the unittest dummy |
6 // package. Once that package is no longer being updated, move this back into | 6 // package. Once that package is no longer being updated, move this back into |
7 // bin. | 7 // bin. |
8 import 'dart:io'; | 8 import 'dart:io'; |
9 | 9 |
10 import 'package:source_span/source_span.dart'; | 10 import 'package:source_span/source_span.dart'; |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 var output = stdout; | 175 var output = stdout; |
176 | 176 |
177 var message = "Runs tests in this package."; | 177 var message = "Runs tests in this package."; |
178 if (error != null) { | 178 if (error != null) { |
179 message = error; | 179 message = error; |
180 output = stderr; | 180 output = stderr; |
181 } | 181 } |
182 | 182 |
183 output.write("""${wordWrap(message)} | 183 output.write("""${wordWrap(message)} |
184 | 184 |
185 Usage: pub run test:test [files or directories...] | 185 Usage: pub run test [files or directories...] |
186 | 186 |
187 ${Configuration.usage} | 187 ${Configuration.usage} |
188 """); | 188 """); |
189 } | 189 } |
OLD | NEW |