| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 -h, --help Shows this usage information. | 47 -h, --help Shows this usage information. |
| 48 --version Shows the package's version. | 48 --version Shows the package's version. |
| 49 | 49 |
| 50 ======== Selecting Tests | 50 ======== Selecting Tests |
| 51 -n, --name A substring of the name of the test to run. | 51 -n, --name A substring of the name of the test to run. |
| 52 Regular expression syntax is supported. | 52 Regular expression syntax is supported. |
| 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 Supports boolean selector syntax. |
| 57 |
| 56 -x, --exclude-tags Don't run tests with any of the specified tags. | 58 -x, --exclude-tags Don't run tests with any of the specified tags. |
| 59 Supports boolean selector syntax. |
| 57 | 60 |
| 58 ======== Running Tests | 61 ======== Running Tests |
| 59 -p, --platform The platform(s) on which to run the tests. | 62 -p, --platform The platform(s) on which to run the tests. |
| 60 $_browsers | 63 $_browsers |
| 61 | 64 |
| 62 -j, --concurrency=<threads> The number of concurrent test suites run. | 65 -j, --concurrency=<threads> The number of concurrent test suites run. |
| 63 (defaults to "$_defaultConcurrency") | 66 (defaults to "$_defaultConcurrency") |
| 64 | 67 |
| 65 --pub-serve=<port> The port of a pub serve instance serving "test/". | 68 --pub-serve=<port> The port of a pub serve instance serving "test/". |
| 66 --timeout The default test timeout. For example: 15s, 2x, n
one | 69 --timeout The default test timeout. For example: 15s, 2x, n
one |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 662 d.file("test.dart", _success).create(); | 665 d.file("test.dart", _success).create(); |
| 663 | 666 |
| 664 var test = runTest(["--plain-name", "no match", "test.dart"]); | 667 var test = runTest(["--plain-name", "no match", "test.dart"]); |
| 665 test.stderr.expect( | 668 test.stderr.expect( |
| 666 consumeThrough(contains('No tests match "no match".'))); | 669 consumeThrough(contains('No tests match "no match".'))); |
| 667 test.shouldExit(exit_codes.data); | 670 test.shouldExit(exit_codes.data); |
| 668 }); | 671 }); |
| 669 }); | 672 }); |
| 670 }); | 673 }); |
| 671 } | 674 } |
| OLD | NEW |