| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 /** | 5 /** |
| 6 * Classes and methods for enumerating and preparing tests. | 6 * Classes and methods for enumerating and preparing tests. |
| 7 * | 7 * |
| 8 * This library includes: | 8 * This library includes: |
| 9 * | 9 * |
| 10 * - Creating tests by listing all the Dart files in certain directories, | 10 * - Creating tests by listing all the Dart files in certain directories, |
| (...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 608 int shards = configuration['shards']; | 608 int shards = configuration['shards']; |
| 609 if (shards > 1) { | 609 if (shards > 1) { |
| 610 int shard = configuration['shard']; | 610 int shard = configuration['shard']; |
| 611 if (testName.hashCode % shards != shard - 1) { | 611 if (testName.hashCode % shards != shard - 1) { |
| 612 return; | 612 return; |
| 613 } | 613 } |
| 614 } | 614 } |
| 615 | 615 |
| 616 Set<String> expectations = testExpectations.expectations(testName); | 616 Set<String> expectations = testExpectations.expectations(testName); |
| 617 if (info.hasCompileError && | 617 if (info.hasCompileError && |
| 618 TestUtils.isBrowserRuntime(configuration['runtime'])) { | 618 TestUtils.isBrowserRuntime(configuration['runtime']) && |
| 619 configuration['report']) { |
| 619 SummaryReport.addCompileErrorSkipTest(); | 620 SummaryReport.addCompileErrorSkipTest(); |
| 620 return; | 621 return; |
| 621 } | 622 } |
| 622 if (configuration['report']) { | 623 if (configuration['report']) { |
| 623 // Tests with multiple VMOptions are counted more than once. | 624 // Tests with multiple VMOptions are counted more than once. |
| 624 for (var dummy in getVmOptions(optionsFromFile)) { | 625 for (var dummy in getVmOptions(optionsFromFile)) { |
| 625 SummaryReport.add(expectations); | 626 SummaryReport.add(expectations); |
| 626 } | 627 } |
| 627 } | 628 } |
| 628 if (expectations.contains(SKIP)) return; | 629 if (expectations.contains(SKIP)) return; |
| (...skipping 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1671 * $pass tests are expected to pass | 1672 * $pass tests are expected to pass |
| 1672 * $failOk tests are expected to fail that we won't fix | 1673 * $failOk tests are expected to fail that we won't fix |
| 1673 * $fail tests are expected to fail that we should fix | 1674 * $fail tests are expected to fail that we should fix |
| 1674 * $crash tests are expected to crash that we should fix | 1675 * $crash tests are expected to crash that we should fix |
| 1675 * $timeout tests are allowed to timeout | 1676 * $timeout tests are allowed to timeout |
| 1676 * $compileErrorSkip tests are skipped on browsers due to compile-time error | 1677 * $compileErrorSkip tests are skipped on browsers due to compile-time error |
| 1677 """; | 1678 """; |
| 1678 print(report); | 1679 print(report); |
| 1679 } | 1680 } |
| 1680 } | 1681 } |
| OLD | NEW |