| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 library pub_tests; | 5 library pub_tests; |
| 6 | 6 |
| 7 import 'package:scheduled_test/scheduled_test.dart'; | 7 import 'package:scheduled_test/scheduled_test.dart'; |
| 8 | 8 |
| 9 import '../lib/src/exit_codes.dart' as exit_codes; | 9 import '../lib/src/exit_codes.dart' as exit_codes; |
| 10 import 'test_pub.dart'; | 10 import 'test_pub.dart'; |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 integration('shows non-truncated help', () { | 212 integration('shows non-truncated help', () { |
| 213 schedulePub(args: ['help', 'serve'], | 213 schedulePub(args: ['help', 'serve'], |
| 214 output: ''' | 214 output: ''' |
| 215 Run a local web development server. | 215 Run a local web development server. |
| 216 | 216 |
| 217 By default, this serves "web/" and "test/", but an explicit list of | 217 By default, this serves "web/" and "test/", but an explicit list of |
| 218 directories to serve can be provided as well. | 218 directories to serve can be provided as well. |
| 219 | 219 |
| 220 Usage: pub serve [directories...] | 220 Usage: pub serve [directories...] |
| 221 -h, --help Print usage information for this command. | 221 -h, --help Print usage information for this command. |
| 222 --hostname The hostname to listen on. |
| 223 (defaults to "localhost") |
| 224 |
| 222 --port The base port to listen on. | 225 --port The base port to listen on. |
| 223 (defaults to "8080") | 226 (defaults to "8080") |
| 224 | 227 |
| 225 --[no-]dart2js Compile Dart to JavaScript. | 228 --[no-]dart2js Compile Dart to JavaScript. |
| 226 (defaults to on) | 229 (defaults to on) |
| 227 | 230 |
| 228 --[no-]force-poll Force the use of a polling filesystem watch
er. | 231 --[no-]force-poll Force the use of a polling filesystem watch
er. |
| 229 --mode Mode to run transformers in. | 232 --mode Mode to run transformers in. |
| 230 (defaults to "debug") | 233 (defaults to "debug") |
| 231 '''); | 234 '''); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 exitCode: exit_codes.USAGE); | 288 exitCode: exit_codes.USAGE); |
| 286 }); | 289 }); |
| 287 }); | 290 }); |
| 288 | 291 |
| 289 group('version', () { | 292 group('version', () { |
| 290 integration('displays the current version', () { | 293 integration('displays the current version', () { |
| 291 schedulePub(args: ['version'], output: VERSION_STRING); | 294 schedulePub(args: ['version'], output: VERSION_STRING); |
| 292 }); | 295 }); |
| 293 }); | 296 }); |
| 294 } | 297 } |
| OLD | NEW |