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

Side by Side Diff: test/runner/runner_test.dart

Issue 1659623002: Update the expected usage. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 @TestOn("vm") 5 @TestOn("vm")
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 import 'dart:math' as math; 8 import 'dart:math' as math;
9 9
10 import 'package:scheduled_test/descriptor.dart' as d; 10 import 'package:scheduled_test/descriptor.dart' as d;
(...skipping 28 matching lines...) Expand all
39 final _browsers = 39 final _browsers =
40 "[vm (default), dartium, content-shell, chrome, phantomjs, firefox" + 40 "[vm (default), dartium, content-shell, chrome, phantomjs, firefox" +
41 (Platform.isMacOS ? ", safari" : "") + 41 (Platform.isMacOS ? ", safari" : "") +
42 (Platform.isWindows ? ", ie" : "") + "]"; 42 (Platform.isWindows ? ", ie" : "") + "]";
43 43
44 final _usage = """ 44 final _usage = """
45 Usage: pub run test:test [files or directories...] 45 Usage: pub run test:test [files or directories...]
46 46
47 -h, --help Shows this usage information. 47 -h, --help Shows this usage information.
48 --version Shows the package's version. 48 --version Shows the package's version.
49
50 ======== Selecting Tests
49 -n, --name A substring of the name of the test to run. 51 -n, --name A substring of the name of the test to run.
50 Regular expression syntax is supported. 52 Regular expression syntax is supported.
51 53
52 -N, --plain-name A plain-text substring of the name of the test to run. 54 -N, --plain-name A plain-text substring of the name of the test to run.
53 -t, --tags Run only tests with all of the specified tags. 55 -t, --tags Run only tests with all of the specified tags.
54 -x, --exclude-tags Don't run tests with any of the specified tags. 56 -x, --exclude-tags Don't run tests with any of the specified tags.
57
58 ======== Running Tests
55 -p, --platform The platform(s) on which to run the tests. 59 -p, --platform The platform(s) on which to run the tests.
56 $_browsers 60 $_browsers
57 61
58 -j, --concurrency=<threads> The number of concurrent test suites run. 62 -j, --concurrency=<threads> The number of concurrent test suites run.
59 (defaults to $_defaultConcurrency) 63 (defaults to $_defaultConcurrency)
60 64
61 --pub-serve=<port> The port of a pub serve instance serving "test/". 65 --pub-serve=<port> The port of a pub serve instance serving "test/".
66 --timeout The default test timeout. For example: 15s, 2x, n one
67 (defaults to 30s)
68
62 --pause-after-load Pauses for debugging before any tests execute. 69 --pause-after-load Pauses for debugging before any tests execute.
63 Implies --concurrency=1. 70 Implies --concurrency=1 and --timeout=none.
64 Currently only supported for browser tests. 71 Currently only supported for browser tests.
65 72
73 ======== Output
66 -r, --reporter The runner used to print test results. 74 -r, --reporter The runner used to print test results.
67 75
68 [compact] A single line, updated continuously. 76 [compact] A single line, updated continuously.
69 [expanded] A separate line for each update. 77 [expanded] A separate line for each update.
70 [json] A machine-readable format (see https://goo.gl/0HR hdZ). 78 [json] A machine-readable format (see https://goo.gl/0HR hdZ).
71 79
72 --verbose-trace Whether to emit stack traces with core library fr ames. 80 --verbose-trace Whether to emit stack traces with core library fr ames.
73 --js-trace Whether to emit raw JavaScript stack traces for b rowser tests. 81 --js-trace Whether to emit raw JavaScript stack traces for b rowser tests.
74 --[no-]color Whether to use terminal colors. 82 --[no-]color Whether to use terminal colors.
75 (auto-detected by default) 83 (auto-detected by default)
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 d.file("test.dart", _success).create(); 656 d.file("test.dart", _success).create();
649 657
650 var test = runTest(["--plain-name", "no match", "test.dart"]); 658 var test = runTest(["--plain-name", "no match", "test.dart"]);
651 test.stderr.expect( 659 test.stderr.expect(
652 consumeThrough(contains('No tests match "no match".'))); 660 consumeThrough(contains('No tests match "no match".')));
653 test.shouldExit(exit_codes.data); 661 test.shouldExit(exit_codes.data);
654 }); 662 });
655 }); 663 });
656 }); 664 });
657 } 665 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698