| 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 executing tests. | 6 * Classes and methods for executing tests. |
| 7 * | 7 * |
| 8 * This module includes: | 8 * This module includes: |
| 9 * - Managing parallel execution of tests, including timeout checks. | 9 * - Managing parallel execution of tests, including timeout checks. |
| 10 * - Evaluating the output of each test as pass/fail/crash/timeout. | 10 * - Evaluating the output of each test as pass/fail/crash/timeout. |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 } | 335 } |
| 336 return _didStandardTestFail(errors, staticWarnings); | 336 return _didStandardTestFail(errors, staticWarnings); |
| 337 } | 337 } |
| 338 | 338 |
| 339 bool _didMultitestFail(List errors, List staticWarnings) { | 339 bool _didMultitestFail(List errors, List staticWarnings) { |
| 340 Set<String> outcome = testCase.info.multitestOutcome; | 340 Set<String> outcome = testCase.info.multitestOutcome; |
| 341 Expect.isNotNull(outcome); | 341 Expect.isNotNull(outcome); |
| 342 if ((outcome.isEmpty() || outcome.contains('compile-time error')) | 342 if ((outcome.isEmpty() || outcome.contains('compile-time error')) |
| 343 && errors.length > 0) { | 343 && errors.length > 0) { |
| 344 return true; | 344 return true; |
| 345 } else if (outcome.contains('static type error') | 345 } else if (outcome.contains('static type warning') |
| 346 && staticWarnings.length > 0) { | 346 && staticWarnings.length > 0) { |
| 347 return true; | 347 return true; |
| 348 } | 348 } |
| 349 return false; | 349 return false; |
| 350 } | 350 } |
| 351 | 351 |
| 352 bool _didStandardTestFail(List errors, List staticWarnings) { | 352 bool _didStandardTestFail(List errors, List staticWarnings) { |
| 353 bool hasFatalTypeErrors = false; | 353 bool hasFatalTypeErrors = false; |
| 354 int numStaticTypeAnnotations = 0; | 354 int numStaticTypeAnnotations = 0; |
| 355 int numCompileTimeAnnotations = 0; | 355 int numCompileTimeAnnotations = 0; |
| (...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1131 // the developer doesn't waste his or her time trying to fix a bunch of | 1131 // the developer doesn't waste his or her time trying to fix a bunch of |
| 1132 // tests that appear to be broken but were actually just flakes that | 1132 // tests that appear to be broken but were actually just flakes that |
| 1133 // didn't get retried because there had already been one failure. | 1133 // didn't get retried because there had already been one failure. |
| 1134 bool allowRetry = _MAX_FAILED_NO_RETRY > _progress.numFailedTests; | 1134 bool allowRetry = _MAX_FAILED_NO_RETRY > _progress.numFailedTests; |
| 1135 new RunningProcess(test, allowRetry, this).start(); | 1135 new RunningProcess(test, allowRetry, this).start(); |
| 1136 } | 1136 } |
| 1137 _numProcesses++; | 1137 _numProcesses++; |
| 1138 } | 1138 } |
| 1139 } | 1139 } |
| 1140 } | 1140 } |
| OLD | NEW |