| 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 --pause-after-load Pauses for debugging before any tests execute. |
| 62 Implies --concurrency=1. |
| 63 Currently only supported for browser tests. |
| 64 |
| 61 -r, --reporter The runner used to print test results. | 65 -r, --reporter The runner used to print test results. |
| 62 | 66 |
| 63 [compact] A single line, updated continuously. | 67 [compact] A single line, updated continuously. |
| 64 [expanded] A separate line for each update. | 68 [expanded] A separate line for each update. |
| 65 | 69 |
| 66 --verbose-trace Whether to emit stack traces with core library fr
ames. | 70 --verbose-trace Whether to emit stack traces with core library fr
ames. |
| 67 --js-trace Whether to emit raw JavaScript stack traces for b
rowser tests. | 71 --js-trace Whether to emit raw JavaScript stack traces for b
rowser tests. |
| 68 --[no-]color Whether to use terminal colors. | 72 --[no-]color Whether to use terminal colors. |
| 69 (auto-detected by default) | 73 (auto-detected by default) |
| 70 """; | 74 """; |
| (...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 669 d.file("test.dart", _success).create(); | 673 d.file("test.dart", _success).create(); |
| 670 | 674 |
| 671 var test = runTest(["--plain-name", "no match", "test.dart"]); | 675 var test = runTest(["--plain-name", "no match", "test.dart"]); |
| 672 test.stderr.expect( | 676 test.stderr.expect( |
| 673 consumeThrough(contains('No tests match "no match".'))); | 677 consumeThrough(contains('No tests match "no match".'))); |
| 674 test.shouldExit(exit_codes.data); | 678 test.shouldExit(exit_codes.data); |
| 675 }); | 679 }); |
| 676 }); | 680 }); |
| 677 }); | 681 }); |
| 678 } | 682 } |
| OLD | NEW |