| 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:scheduled_test/descriptor.dart' as d; | 10 import 'package:scheduled_test/descriptor.dart' as d; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 --pub-serve=<port> The port of a pub serve instance serving "test/". | 59 --pub-serve=<port> The port of a pub serve instance serving "test/". |
| 60 --pause-after-load Pauses for debugging before any tests execute. | 60 --pause-after-load Pauses for debugging before any tests execute. |
| 61 Implies --concurrency=1. | 61 Implies --concurrency=1. |
| 62 Currently only supported for browser tests. | 62 Currently only supported for browser tests. |
| 63 | 63 |
| 64 -r, --reporter The runner used to print test results. | 64 -r, --reporter The runner used to print test results. |
| 65 | 65 |
| 66 [compact] A single line, updated continuously. | 66 [compact] A single line, updated continuously. |
| 67 [expanded] A separate line for each update. | 67 [expanded] A separate line for each update. |
| 68 [json] A machine-readable format (see https://goo.gl/0HR
hdZ). |
| 68 | 69 |
| 69 --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. |
| 70 --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. |
| 71 --[no-]color Whether to use terminal colors. | 72 --[no-]color Whether to use terminal colors. |
| 72 (auto-detected by default) | 73 (auto-detected by default) |
| 73 """; | 74 """; |
| 74 | 75 |
| 75 void main() { | 76 void main() { |
| 76 useSandbox(); | 77 useSandbox(); |
| 77 | 78 |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 d.file("test.dart", _success).create(); | 667 d.file("test.dart", _success).create(); |
| 667 | 668 |
| 668 var test = runTest(["--plain-name", "no match", "test.dart"]); | 669 var test = runTest(["--plain-name", "no match", "test.dart"]); |
| 669 test.stderr.expect( | 670 test.stderr.expect( |
| 670 consumeThrough(contains('No tests match "no match".'))); | 671 consumeThrough(contains('No tests match "no match".'))); |
| 671 test.shouldExit(exit_codes.data); | 672 test.shouldExit(exit_codes.data); |
| 672 }); | 673 }); |
| 673 }); | 674 }); |
| 674 }); | 675 }); |
| 675 } | 676 } |
| OLD | NEW |