Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(375)

Side by Side Diff: sdk/lib/_internal/pub/test/pub_test.dart

Issue 342763003: Show partial reports in pub get, serve, and build. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 }); 63 });
64 64
65 integration('running pub with --help after command shows command usage', () { 65 integration('running pub with --help after command shows command usage', () {
66 schedulePub(args: ['get', '--help'], 66 schedulePub(args: ['get', '--help'],
67 output: ''' 67 output: '''
68 Get the current package's dependencies. 68 Get the current package's dependencies.
69 69
70 Usage: pub get 70 Usage: pub get
71 -h, --help Print usage information for this command. 71 -h, --help Print usage information for this command.
72 --[no-]offline Use cached packages instead of accessing the net work. 72 --[no-]offline Use cached packages instead of accessing the net work.
73 -n, --dry-run Report what dependencies would change but don't change any.
73 '''); 74 ''');
74 }); 75 });
75 76
76 integration('running pub with -h after command shows command usage', () { 77 integration('running pub with -h after command shows command usage', () {
77 schedulePub(args: ['get', '-h'], 78 schedulePub(args: ['get', '-h'],
78 output: ''' 79 output: '''
79 Get the current package's dependencies. 80 Get the current package's dependencies.
80 81
81 Usage: pub get 82 Usage: pub get
82 -h, --help Print usage information for this command. 83 -h, --help Print usage information for this command.
83 --[no-]offline Use cached packages instead of accessing the net work. 84 --[no-]offline Use cached packages instead of accessing the net work.
85 -n, --dry-run Report what dependencies would change but don't change any.
84 '''); 86 ''');
85 }); 87 });
86 88
87 integration('running pub with --help after a command with subcommands shows ' 89 integration('running pub with --help after a command with subcommands shows '
88 'command usage', () { 90 'command usage', () {
89 schedulePub(args: ['cache', '--help'], 91 schedulePub(args: ['cache', '--help'],
90 output: ''' 92 output: '''
91 Work with the system cache. 93 Work with the system cache.
92 94
93 Usage: pub cache <subcommand> 95 Usage: pub cache <subcommand>
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 }); 194 });
193 195
194 integration('shows help for a command', () { 196 integration('shows help for a command', () {
195 schedulePub(args: ['help', 'get'], 197 schedulePub(args: ['help', 'get'],
196 output: ''' 198 output: '''
197 Get the current package's dependencies. 199 Get the current package's dependencies.
198 200
199 Usage: pub get 201 Usage: pub get
200 -h, --help Print usage information for this command. 202 -h, --help Print usage information for this command.
201 --[no-]offline Use cached packages instead of accessing the n etwork. 203 --[no-]offline Use cached packages instead of accessing the n etwork.
204 -n, --dry-run Report what dependencies would change but don' t change any.
202 '''); 205 ''');
203 }); 206 });
204 207
205 integration('shows help for a command', () { 208 integration('shows help for a command', () {
206 schedulePub(args: ['help', 'publish'], 209 schedulePub(args: ['help', 'publish'],
207 output: ''' 210 output: '''
208 Publish the current package to pub.dartlang.org. 211 Publish the current package to pub.dartlang.org.
209 212
210 Usage: pub publish [options] 213 Usage: pub publish [options]
211 -h, --help Print usage information for this command. 214 -h, --help Print usage information for this command.
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 exitCode: exit_codes.USAGE); 303 exitCode: exit_codes.USAGE);
301 }); 304 });
302 }); 305 });
303 306
304 group('version', () { 307 group('version', () {
305 integration('displays the current version', () { 308 integration('displays the current version', () {
306 schedulePub(args: ['version'], output: VERSION_STRING); 309 schedulePub(args: ['version'], output: VERSION_STRING);
307 }); 310 });
308 }); 311 });
309 } 312 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698