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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 void main() { | 34 void main() { |
35 test("failure", () => throw new TestFailure("oh no")); | 35 test("failure", () => throw new TestFailure("oh no")); |
36 } | 36 } |
37 """; | 37 """; |
38 | 38 |
39 final _defaultConcurrency = math.max(1, Platform.numberOfProcessors ~/ 2); | 39 final _defaultConcurrency = math.max(1, Platform.numberOfProcessors ~/ 2); |
40 | 40 |
41 final _browsers = | 41 final _browsers = |
42 "[vm (default), dartium, content-shell, chrome, phantomjs, firefox" + | 42 "[vm (default), dartium, content-shell, chrome, phantomjs, firefox" + |
43 (Platform.isMacOS ? ", safari" : "") + "]"; | 43 (Platform.isMacOS ? ", safari" : "") + |
| 44 (Platform.isWindows ? ", ie" : "") + "]"; |
44 | 45 |
45 final _usage = """ | 46 final _usage = """ |
46 Usage: pub run test:test [files or directories...] | 47 Usage: pub run test:test [files or directories...] |
47 | 48 |
48 -h, --help Shows this usage information. | 49 -h, --help Shows this usage information. |
49 --version Shows the package's version. | 50 --version Shows the package's version. |
50 -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. |
51 Regular expression syntax is supported. | 52 Regular expression syntax is supported. |
52 | 53 |
53 -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. |
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 }); | 660 }); |
660 }); | 661 }); |
661 }); | 662 }); |
662 } | 663 } |
663 | 664 |
664 ProcessResult _runTest(List<String> args) => | 665 ProcessResult _runTest(List<String> args) => |
665 runTest(args, workingDirectory: _sandbox); | 666 runTest(args, workingDirectory: _sandbox); |
666 | 667 |
667 ProcessResult _runDart(List<String> args) => | 668 ProcessResult _runDart(List<String> args) => |
668 runDart(args, workingDirectory: _sandbox); | 669 runDart(args, workingDirectory: _sandbox); |
OLD | NEW |