| 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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 int shard = configuration['shard']; | 385 int shard = configuration['shard']; |
| 386 if (testName.hashCode() % shards != shard - 1) { | 386 if (testName.hashCode() % shards != shard - 1) { |
| 387 return; | 387 return; |
| 388 } | 388 } |
| 389 } | 389 } |
| 390 | 390 |
| 391 Set<String> expectations = testExpectations.expectations(testName); | 391 Set<String> expectations = testExpectations.expectations(testName); |
| 392 if (configuration['report']) { | 392 if (configuration['report']) { |
| 393 // Tests with multiple VMOptions are counted more than once. | 393 // Tests with multiple VMOptions are counted more than once. |
| 394 for (var dummy in optionsFromFile["vmOptions"]) { | 394 for (var dummy in optionsFromFile["vmOptions"]) { |
| 395 if (TestUtils.isBrowserRuntime(configuration['runtime']) && |
| 396 optionsFromFile['isMultitest']) { |
| 397 break; // Browser tests skip multitests. |
| 398 } |
| 395 SummaryReport.add(expectations); | 399 SummaryReport.add(expectations); |
| 396 } | 400 } |
| 397 } | 401 } |
| 398 if (expectations.contains(SKIP)) return; | 402 if (expectations.contains(SKIP)) return; |
| 399 | 403 |
| 400 if (TestUtils.isBrowserRuntime(configuration['runtime'])) { | 404 if (TestUtils.isBrowserRuntime(configuration['runtime'])) { |
| 401 enqueueBrowserTest(info, testName, expectations); | 405 enqueueBrowserTest(info, testName, expectations); |
| 402 } else { | 406 } else { |
| 403 enqueueStandardTest(info, testName, expectations); | 407 enqueueStandardTest(info, testName, expectations); |
| 404 } | 408 } |
| (...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1367 * $noCrash tests are expected to be flaky but not crash | 1371 * $noCrash tests are expected to be flaky but not crash |
| 1368 * $pass tests are expected to pass | 1372 * $pass tests are expected to pass |
| 1369 * $failOk tests are expected to fail that we won't fix | 1373 * $failOk tests are expected to fail that we won't fix |
| 1370 * $fail tests are expected to fail that we should fix | 1374 * $fail tests are expected to fail that we should fix |
| 1371 * $crash tests are expected to crash that we should fix | 1375 * $crash tests are expected to crash that we should fix |
| 1372 * $timeout tests are allowed to timeout | 1376 * $timeout tests are allowed to timeout |
| 1373 """; | 1377 """; |
| 1374 print(report); | 1378 print(report); |
| 1375 } | 1379 } |
| 1376 } | 1380 } |
| OLD | NEW |