OLD | NEW |
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:path/path.dart' as p; | 10 import 'package:path/path.dart' as p; |
(...skipping 30 matching lines...) Expand all Loading... |
41 final _usage = """ | 41 final _usage = """ |
42 Usage: pub run test:test [files or directories...] | 42 Usage: pub run test:test [files or directories...] |
43 | 43 |
44 -h, --help Shows this usage information. | 44 -h, --help Shows this usage information. |
45 --version Shows the package's version. | 45 --version Shows the package's version. |
46 -n, --name A substring of the name of the test to run. | 46 -n, --name A substring of the name of the test to run. |
47 Regular expression syntax is supported. | 47 Regular expression syntax is supported. |
48 | 48 |
49 -N, --plain-name A plain-text substring of the name of the test to
run. | 49 -N, --plain-name A plain-text substring of the name of the test to
run. |
50 -p, --platform The platform(s) on which to run the tests. | 50 -p, --platform The platform(s) on which to run the tests. |
51 [vm (default), dartium, content-shell, chrome, ph
antomjs, firefox] | 51 [vm (default), dartium, content-shell, chrome, ph
antomjs, firefox, safari] |
52 | 52 |
53 -j, --concurrency=<threads> The number of concurrent test suites run. | 53 -j, --concurrency=<threads> The number of concurrent test suites run. |
54 (defaults to $_defaultConcurrency) | 54 (defaults to $_defaultConcurrency) |
55 | 55 |
56 --pub-serve=<port> The port of a pub serve instance serving "test/". | 56 --pub-serve=<port> The port of a pub serve instance serving "test/". |
57 --[no-]color Whether to use terminal colors. | 57 --[no-]color Whether to use terminal colors. |
58 (auto-detected by default) | 58 (auto-detected by default) |
59 """; | 59 """; |
60 | 60 |
61 void main() { | 61 void main() { |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 }); | 458 }); |
459 }); | 459 }); |
460 }); | 460 }); |
461 } | 461 } |
462 | 462 |
463 ProcessResult _runUnittest(List<String> args) => | 463 ProcessResult _runUnittest(List<String> args) => |
464 runUnittest(args, workingDirectory: _sandbox); | 464 runUnittest(args, workingDirectory: _sandbox); |
465 | 465 |
466 ProcessResult _runDart(List<String> args) => | 466 ProcessResult _runDart(List<String> args) => |
467 runDart(args, workingDirectory: _sandbox); | 467 runDart(args, workingDirectory: _sandbox); |
OLD | NEW |