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

Unified Diff: sdk/lib/_internal/pub/test/pub_test.dart

Issue 167103003: Support serving from multiple directories using "pub serve". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/pub/test/pub_test.dart
diff --git a/sdk/lib/_internal/pub/test/pub_test.dart b/sdk/lib/_internal/pub/test/pub_test.dart
index cc41e47456b94e2d2e5d5f35d501674eaa398964..3fc4c1370e5273f01b7f03d25bf4174c408f91a7 100644
--- a/sdk/lib/_internal/pub/test/pub_test.dart
+++ b/sdk/lib/_internal/pub/test/pub_test.dart
@@ -209,6 +209,28 @@ main() {
''');
});
+ integration('shows non-truncated help', () {
+ schedulePub(args: ['help', 'serve'],
+ output: '''
+ Run a local web development server.
+
+ By default, this serves "web/" and "test/", but an explicit list of
+ directories to serve can be provided as well.
+
+ Usage: pub serve [directories...]
+ -h, --help Print usage information for this command.
+ --port The base port to listen on.
+ (defaults to "8080")
+
+ --[no-]dart2js Compile Dart to JavaScript.
+ (defaults to on)
+
+ --[no-]force-poll Force the use of a polling filesystem watcher.
+ --mode Mode to run transformers in.
+ (defaults to "debug")
+ ''');
+ });
+
integration('shows help for a subcommand', () {
schedulePub(args: ['help', 'cache', 'list'],
output: '''
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/log.dart ('k') | sdk/lib/_internal/pub/test/serve/roots/serves_urls_from_custom_roots_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698