| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 Regular expression syntax is supported. | 51 Regular expression syntax is supported. |
| 52 | 52 |
| 53 -N, --plain-name A plain-text substring of the name of the test to
run. | 53 -N, --plain-name A plain-text substring of the name of the test to
run. |
| 54 -p, --platform The platform(s) on which to run the tests. | 54 -p, --platform The platform(s) on which to run the tests. |
| 55 $_browsers | 55 $_browsers |
| 56 | 56 |
| 57 -j, --concurrency=<threads> The number of concurrent test suites run. | 57 -j, --concurrency=<threads> The number of concurrent test suites run. |
| 58 (defaults to $_defaultConcurrency) | 58 (defaults to $_defaultConcurrency) |
| 59 | 59 |
| 60 --pub-serve=<port> The port of a pub serve instance serving "test/". | 60 --pub-serve=<port> The port of a pub serve instance serving "test/". |
| 61 -r, --reporter The runner used to print test results. |
| 62 |
| 63 [compact] A single line, updated continuously. |
| 64 [expanded] A separate line for each update. |
| 65 |
| 61 --[no-]color Whether to use terminal colors. | 66 --[no-]color Whether to use terminal colors. |
| 62 (auto-detected by default) | 67 (auto-detected by default) |
| 63 """; | 68 """; |
| 64 | 69 |
| 65 void main() { | 70 void main() { |
| 66 setUp(() { | 71 setUp(() { |
| 67 _sandbox = createTempDir(); | 72 _sandbox = createTempDir(); |
| 68 }); | 73 }); |
| 69 | 74 |
| 70 tearDown(() { | 75 tearDown(() { |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 659 }); | 664 }); |
| 660 }); | 665 }); |
| 661 }); | 666 }); |
| 662 } | 667 } |
| 663 | 668 |
| 664 ProcessResult _runTest(List<String> args) => | 669 ProcessResult _runTest(List<String> args) => |
| 665 runTest(args, workingDirectory: _sandbox); | 670 runTest(args, workingDirectory: _sandbox); |
| 666 | 671 |
| 667 ProcessResult _runDart(List<String> args) => | 672 ProcessResult _runDart(List<String> args) => |
| 668 runDart(args, workingDirectory: _sandbox); | 673 runDart(args, workingDirectory: _sandbox); |
| OLD | NEW |