Chromium Code Reviews| 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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 408 var futures = [ | 408 var futures = [ |
| 409 listDir(dartDir.append('pkg'), isValid), | 409 listDir(dartDir.append('pkg'), isValid), |
| 410 listDir(dartDir.append('pkg').append('third_party'), isValid), | 410 listDir(dartDir.append('pkg').append('third_party'), isValid), |
| 411 listDir(dartDir.append('third_party').append('pkg'), isValid), | 411 listDir(dartDir.append('third_party').append('pkg'), isValid), |
| 412 ]; | 412 ]; |
| 413 return Future.wait(futures).then((results) { | 413 return Future.wait(futures).then((results) { |
| 414 var packageDirectories = {}; | 414 var packageDirectories = {}; |
| 415 for (var result in results) { | 415 for (var result in results) { |
| 416 for (var packageTuple in result) { | 416 for (var packageTuple in result) { |
| 417 String packageName = packageTuple[0]; | 417 String packageName = packageTuple[0]; |
| 418 | |
| 419 // Some packages are pinned to specific versions. We can ignore those | |
| 420 // for the purposes of testing. | |
| 421 if (packageName.contains('-')) continue; | |
|
kustermann
2014/05/27 23:28:17
I'd prefer if you move this logic into the "isVali
nweiz
2014/05/27 23:56:22
Done.
| |
| 422 | |
| 418 String fullPath = packageTuple[1]; | 423 String fullPath = packageTuple[1]; |
| 419 String yamlFile = | 424 String yamlFile = |
| 420 new Path(fullPath).append('pubspec.yaml').toNativePath(); | 425 new Path(fullPath).append('pubspec.yaml').toNativePath(); |
| 421 if (new File(yamlFile).existsSync()) { | 426 if (new File(yamlFile).existsSync()) { |
| 422 packageDirectories[packageName] = fullPath; | 427 packageDirectories[packageName] = fullPath; |
| 423 } | 428 } |
| 424 } | 429 } |
| 425 } | 430 } |
| 426 return packageDirectories; | 431 return packageDirectories; |
| 427 }); | 432 }); |
| (...skipping 1791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2219 * $pass tests are expected to pass | 2224 * $pass tests are expected to pass |
| 2220 * $failOk tests are expected to fail that we won't fix | 2225 * $failOk tests are expected to fail that we won't fix |
| 2221 * $fail tests are expected to fail that we should fix | 2226 * $fail tests are expected to fail that we should fix |
| 2222 * $crash tests are expected to crash that we should fix | 2227 * $crash tests are expected to crash that we should fix |
| 2223 * $timeout tests are allowed to timeout | 2228 * $timeout tests are allowed to timeout |
| 2224 * $compileErrorSkip tests are skipped on browsers due to compile-time error | 2229 * $compileErrorSkip tests are skipped on browsers due to compile-time error |
| 2225 """; | 2230 """; |
| 2226 print(report); | 2231 print(report); |
| 2227 } | 2232 } |
| 2228 } | 2233 } |
| OLD | NEW |