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

Side by Side Diff: test/pub_test.dart

Issue 1267853002: Add verbosity levels for warnings and errors. (Closed) Base URL: https://github.com/dart-lang/pub.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « lib/src/log.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:pub/src/exit_codes.dart' as exit_codes; 7 import 'package:pub/src/exit_codes.dart' as exit_codes;
8 import 'package:scheduled_test/scheduled_test.dart'; 8 import 'package:scheduled_test/scheduled_test.dart';
9 9
10 import 'test_pub.dart'; 10 import 'test_pub.dart';
11 11
12 main() { 12 main() {
13 integration('running pub with no command displays usage', () { 13 integration('running pub with no command displays usage', () {
14 schedulePub(args: [], output: """ 14 schedulePub(args: [], output: """
15 Pub is a package manager for Dart. 15 Pub is a package manager for Dart.
16 16
17 Usage: pub <command> [arguments] 17 Usage: pub <command> [arguments]
18 18
19 Global options: 19 Global options:
20 -h, --help Print this usage information. 20 -h, --help Print this usage information.
21 --version Print pub version. 21 --version Print pub version.
22 --[no-]trace Print debugging information when an error occurs. 22 --[no-]trace Print debugging information when an error occurs.
23 --verbosity Control output verbosity. 23 --verbosity Control output verbosity.
24 24
25 [all] Show all output including internal tracin g messages. 25 [all] Show all output including internal tracin g messages.
26 [error] Show only errors.
26 [io] Also show IO operations. 27 [io] Also show IO operations.
27 [normal] Show errors, warnings, and user messages. 28 [normal] Show errors, warnings, and user messages.
28 [solver] Show steps during version resolution. 29 [solver] Show steps during version resolution.
30 [warning] Show only errors and warnings.
29 31
30 -v, --verbose Shortcut for "--verbosity=all". 32 -v, --verbose Shortcut for "--verbosity=all".
31 --[no-]package-symlinks Generate packages/ directories when insta lling packages. 33 --[no-]package-symlinks Generate packages/ directories when insta lling packages.
32 (defaults to on) 34 (defaults to on)
33 35
34 Available commands: 36 Available commands:
35 build Apply transformers to build a package. 37 build Apply transformers to build a package.
36 cache Work with the system cache. 38 cache Work with the system cache.
37 deps Print package dependencies. 39 deps Print package dependencies.
38 downgrade Downgrade the current package's dependencies to oldest ver sions. 40 downgrade Downgrade the current package's dependencies to oldest ver sions.
39 get Get the current package's dependencies. 41 get Get the current package's dependencies.
40 global Work with global packages. 42 global Work with global packages.
41 help Display help information for pub. 43 help Display help information for pub.
42 publish Publish the current package to pub.dartlang.org. 44 publish Publish the current package to pub.dartlang.org.
43 run Run an executable from a package. 45 run Run an executable from a package.
44 serve Run a local web development server. 46 serve Run a local web development server.
45 upgrade Upgrade the current package's dependencies to latest versi ons. 47 upgrade Upgrade the current package's dependencies to latest versi ons.
46 uploader Manage uploaders for a package on pub.dartlang.org. 48 uploader Manage uploaders for a package on pub.dartlang.org.
47 version Print pub version. 49 version Print pub version.
48 50
49 Run "pub help <command>" for more information about a command. 51 Run "pub help <command>" for more information about a command.
50 See http://dartlang.org/tools/pub for detailed documentation. 52 See http://dartlang.org/tools/pub for detailed documentation.
51 """); 53 """);
52 }); 54 });
53 55
54 integration('running pub with just --version displays version', () { 56 integration('running pub with just --version displays version', () {
55 schedulePub(args: ['--version'], output: 'Pub 0.1.2+3'); 57 schedulePub(args: ['--version'], output: 'Pub 0.1.2+3');
56 }); 58 });
57 } 59 }
OLDNEW
« no previous file with comments | « lib/src/log.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698