| 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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 RegExp pattern = configuration['selectors'][suiteName]; | 395 RegExp pattern = configuration['selectors'][suiteName]; |
| 396 if (!pattern.hasMatch(filename)) return; | 396 if (!pattern.hasMatch(filename)) return; |
| 397 if (filename.endsWith('test_config.dart')) return; | 397 if (filename.endsWith('test_config.dart')) return; |
| 398 | 398 |
| 399 var optionsFromFile = optionsFromFile(filename); | 399 var optionsFromFile = optionsFromFile(filename); |
| 400 Function createTestCase = makeTestCaseCreator(optionsFromFile); | 400 Function createTestCase = makeTestCaseCreator(optionsFromFile); |
| 401 | 401 |
| 402 if (optionsFromFile['isMultitest']) { | 402 if (optionsFromFile['isMultitest']) { |
| 403 testGeneratorStarted(); | 403 testGeneratorStarted(); |
| 404 DoMultitest(filename, | 404 DoMultitest(filename, |
| 405 configuration['component'], | |
| 406 TestUtils.buildDir(configuration), | 405 TestUtils.buildDir(configuration), |
| 407 directoryPath, | 406 directoryPath, |
| 408 createTestCase, | 407 createTestCase, |
| 409 testGeneratorDone); | 408 testGeneratorDone); |
| 410 } else { | 409 } else { |
| 411 createTestCase(filename, optionsFromFile['isNegative']); | 410 createTestCase(filename, optionsFromFile['isNegative']); |
| 412 } | 411 } |
| 413 } | 412 } |
| 414 | 413 |
| 415 /** | 414 /** |
| (...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1140 * $noCrash tests are expected to be flaky but not crash | 1139 * $noCrash tests are expected to be flaky but not crash |
| 1141 * $pass tests are expected to pass | 1140 * $pass tests are expected to pass |
| 1142 * $failOk tests are expected to fail that we won't fix | 1141 * $failOk tests are expected to fail that we won't fix |
| 1143 * $fail tests are expected to fail that we should fix | 1142 * $fail tests are expected to fail that we should fix |
| 1144 * $crash tests are expected to crash that we should fix | 1143 * $crash tests are expected to crash that we should fix |
| 1145 * $timeout tests are allowed to timeout | 1144 * $timeout tests are allowed to timeout |
| 1146 """; | 1145 """; |
| 1147 print(report); | 1146 print(report); |
| 1148 } | 1147 } |
| 1149 } | 1148 } |
| OLD | NEW |