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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 --pause-after-load Pauses for debugging before any tests execute. | 78 --pause-after-load Pauses for debugging before any tests execute. |
79 Implies --concurrency=1 and --timeout=none. | 79 Implies --concurrency=1 and --timeout=none. |
80 Currently only supported for browser tests. | 80 Currently only supported for browser tests. |
81 | 81 |
82 ======== Output | 82 ======== Output |
83 -r, --reporter The runner used to print test results. | 83 -r, --reporter The runner used to print test results. |
84 | 84 |
85 [compact] A single line, updated continuously. | 85 [compact] A single line, updated continuously. |
86 [expanded] A separate line for each update. | 86 [expanded] A separate line for each update. |
87 [json] A machine-readable format (see https://goo.gl/0HR
hdZ). | 87 [json] A machine-readable format (see https://goo.gl/gBs
V1a). |
88 | 88 |
89 --verbose-trace Whether to emit stack traces with core library fr
ames. | 89 --verbose-trace Whether to emit stack traces with core library fr
ames. |
90 --js-trace Whether to emit raw JavaScript stack traces for b
rowser tests. | 90 --js-trace Whether to emit raw JavaScript stack traces for b
rowser tests. |
91 --[no-]color Whether to use terminal colors. | 91 --[no-]color Whether to use terminal colors. |
92 (auto-detected by default) | 92 (auto-detected by default) |
93 """; | 93 """; |
94 | 94 |
95 void main() { | 95 void main() { |
96 useSandbox(); | 96 useSandbox(); |
97 | 97 |
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 }); | 576 }); |
577 | 577 |
578 test("with the --color flag, uses colors", () { | 578 test("with the --color flag, uses colors", () { |
579 d.file("test.dart", _failure).create(); | 579 d.file("test.dart", _failure).create(); |
580 var test = runTest(["--color", "test.dart"]); | 580 var test = runTest(["--color", "test.dart"]); |
581 // This is the color code for red. | 581 // This is the color code for red. |
582 test.stdout.expect(consumeThrough(contains("\u001b[31m"))); | 582 test.stdout.expect(consumeThrough(contains("\u001b[31m"))); |
583 test.shouldExit(); | 583 test.shouldExit(); |
584 }); | 584 }); |
585 } | 585 } |
OLD | NEW |