| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 -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. |
| 55 -t, --tags Run only tests with all of the specified tags. | 55 -t, --tags Run only tests with all of the specified tags. |
| 56 -x, --exclude-tags Don't run tests with any of the specified tags. | 56 -x, --exclude-tags Don't run tests with any of the specified tags. |
| 57 | 57 |
| 58 ======== Running Tests | 58 ======== Running Tests |
| 59 -p, --platform The platform(s) on which to run the tests. | 59 -p, --platform The platform(s) on which to run the tests. |
| 60 $_browsers | 60 $_browsers |
| 61 | 61 |
| 62 -j, --concurrency=<threads> The number of concurrent test suites run. | 62 -j, --concurrency=<threads> The number of concurrent test suites run. |
| 63 (defaults to $_defaultConcurrency) | 63 (defaults to "$_defaultConcurrency") |
| 64 | 64 |
| 65 --pub-serve=<port> The port of a pub serve instance serving "test/". | 65 --pub-serve=<port> The port of a pub serve instance serving "test/". |
| 66 --timeout The default test timeout. For example: 15s, 2x, n
one | 66 --timeout The default test timeout. For example: 15s, 2x, n
one |
| 67 (defaults to 30s) | 67 (defaults to "30s") |
| 68 | 68 |
| 69 --pause-after-load Pauses for debugging before any tests execute. | 69 --pause-after-load Pauses for debugging before any tests execute. |
| 70 Implies --concurrency=1 and --timeout=none. | 70 Implies --concurrency=1 and --timeout=none. |
| 71 Currently only supported for browser tests. | 71 Currently only supported for browser tests. |
| 72 | 72 |
| 73 ======== Output | 73 ======== Output |
| 74 -r, --reporter The runner used to print test results. | 74 -r, --reporter The runner used to print test results. |
| 75 | 75 |
| 76 [compact] A single line, updated continuously. | 76 [compact] A single line, updated continuously. |
| 77 [expanded] A separate line for each update. | 77 [expanded] A separate line for each update. |
| (...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 662 d.file("test.dart", _success).create(); | 662 d.file("test.dart", _success).create(); |
| 663 | 663 |
| 664 var test = runTest(["--plain-name", "no match", "test.dart"]); | 664 var test = runTest(["--plain-name", "no match", "test.dart"]); |
| 665 test.stderr.expect( | 665 test.stderr.expect( |
| 666 consumeThrough(contains('No tests match "no match".'))); | 666 consumeThrough(contains('No tests match "no match".'))); |
| 667 test.shouldExit(exit_codes.data); | 667 test.shouldExit(exit_codes.data); |
| 668 }); | 668 }); |
| 669 }); | 669 }); |
| 670 }); | 670 }); |
| 671 } | 671 } |
| OLD | NEW |