| 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 14 matching lines...) Expand all Loading... |
| 25 [normal] Show errors, warnings, and user messages. | 25 [normal] Show errors, warnings, and user messages. |
| 26 [solver] Show steps during version resolution. | 26 [solver] Show steps during version resolution. |
| 27 | 27 |
| 28 -v, --verbose Shortcut for "--verbosity=all". | 28 -v, --verbose Shortcut for "--verbosity=all". |
| 29 | 29 |
| 30 Available commands: | 30 Available commands: |
| 31 build Apply transformers to build a package. | 31 build Apply transformers to build a package. |
| 32 cache Work with the system cache. | 32 cache Work with the system cache. |
| 33 deps Print package dependencies. | 33 deps Print package dependencies. |
| 34 get Get the current package's dependencies. | 34 get Get the current package's dependencies. |
| 35 global Work with global packages. |
| 35 help Display help information for Pub. | 36 help Display help information for Pub. |
| 36 publish Publish the current package to pub.dartlang.org. | 37 publish Publish the current package to pub.dartlang.org. |
| 37 run Run an executable from a package. | 38 run Run an executable from a package. |
| 38 serve Run a local web development server. | 39 serve Run a local web development server. |
| 39 upgrade Upgrade the current package's dependencies to latest versions. | 40 upgrade Upgrade the current package's dependencies to latest versions. |
| 40 uploader Manage uploaders for a package on pub.dartlang.org. | 41 uploader Manage uploaders for a package on pub.dartlang.org. |
| 41 version Print pub version. | 42 version Print pub version. |
| 42 | 43 |
| 43 Use "pub help [command]" for more information about a command. | 44 Use "pub help [command]" for more information about a command. |
| 44 """; | 45 """; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 integration('an unknown command displays an error message', () { | 114 integration('an unknown command displays an error message', () { |
| 114 schedulePub(args: ['quylthulg'], | 115 schedulePub(args: ['quylthulg'], |
| 115 error: ''' | 116 error: ''' |
| 116 Could not find a command named "quylthulg". | 117 Could not find a command named "quylthulg". |
| 117 | 118 |
| 118 Available commands: | 119 Available commands: |
| 119 build Apply transformers to build a package. | 120 build Apply transformers to build a package. |
| 120 cache Work with the system cache. | 121 cache Work with the system cache. |
| 121 deps Print package dependencies. | 122 deps Print package dependencies. |
| 122 get Get the current package's dependencies. | 123 get Get the current package's dependencies. |
| 124 global Work with global packages. |
| 123 help Display help information for Pub. | 125 help Display help information for Pub. |
| 124 publish Publish the current package to pub.dartlang.org. | 126 publish Publish the current package to pub.dartlang.org. |
| 125 run Run an executable from a package. | 127 run Run an executable from a package. |
| 126 serve Run a local web development server. | 128 serve Run a local web development server. |
| 127 upgrade Upgrade the current package's dependencies to latest versio
ns. | 129 upgrade Upgrade the current package's dependencies to latest versio
ns. |
| 128 uploader Manage uploaders for a package on pub.dartlang.org. | 130 uploader Manage uploaders for a package on pub.dartlang.org. |
| 129 version Print pub version. | 131 version Print pub version. |
| 130 ''', | 132 ''', |
| 131 exitCode: exit_codes.USAGE); | 133 exitCode: exit_codes.USAGE); |
| 132 }); | 134 }); |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 integration('an unknown help command displays an error message', () { | 265 integration('an unknown help command displays an error message', () { |
| 264 schedulePub(args: ['help', 'quylthulg'], | 266 schedulePub(args: ['help', 'quylthulg'], |
| 265 error: ''' | 267 error: ''' |
| 266 Could not find a command named "quylthulg". | 268 Could not find a command named "quylthulg". |
| 267 | 269 |
| 268 Available commands: | 270 Available commands: |
| 269 build Apply transformers to build a package. | 271 build Apply transformers to build a package. |
| 270 cache Work with the system cache. | 272 cache Work with the system cache. |
| 271 deps Print package dependencies. | 273 deps Print package dependencies. |
| 272 get Get the current package's dependencies. | 274 get Get the current package's dependencies. |
| 275 global Work with global packages. |
| 273 help Display help information for Pub. | 276 help Display help information for Pub. |
| 274 publish Publish the current package to pub.dartlang.org. | 277 publish Publish the current package to pub.dartlang.org. |
| 275 run Run an executable from a package. | 278 run Run an executable from a package. |
| 276 serve Run a local web development server. | 279 serve Run a local web development server. |
| 277 upgrade Upgrade the current package's dependencies to latest ve
rsions. | 280 upgrade Upgrade the current package's dependencies to latest ve
rsions. |
| 278 uploader Manage uploaders for a package on pub.dartlang.org. | 281 uploader Manage uploaders for a package on pub.dartlang.org. |
| 279 version Print pub version. | 282 version Print pub version. |
| 280 ''', | 283 ''', |
| 281 exitCode: exit_codes.USAGE); | 284 exitCode: exit_codes.USAGE); |
| 282 }); | 285 }); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 307 exitCode: exit_codes.USAGE); | 310 exitCode: exit_codes.USAGE); |
| 308 }); | 311 }); |
| 309 }); | 312 }); |
| 310 | 313 |
| 311 group('version', () { | 314 group('version', () { |
| 312 integration('displays the current version', () { | 315 integration('displays the current version', () { |
| 313 schedulePub(args: ['version'], output: VERSION_STRING); | 316 schedulePub(args: ['version'], output: VERSION_STRING); |
| 314 }); | 317 }); |
| 315 }); | 318 }); |
| 316 } | 319 } |
| OLD | NEW |