| 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 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1134 print(" Error: $e"); | 1134 print(" Error: $e"); |
| 1135 // TODO(ahe): How to report this as a test failure? | 1135 // TODO(ahe): How to report this as a test failure? |
| 1136 exit(1); | 1136 exit(1); |
| 1137 return true; | 1137 return true; |
| 1138 }); | 1138 }); |
| 1139 } | 1139 } |
| 1140 } | 1140 } |
| 1141 | 1141 |
| 1142 void _runTest(TestCase test) { | 1142 void _runTest(TestCase test) { |
| 1143 if (test.usesWebDriver) { | 1143 if (test.usesWebDriver) { |
| 1144 browserUsed = test.configuration['browser']; | 1144 browserUsed = test.configuration['runtime']; |
| 1145 if (_needsSelenium) _ensureSeleniumServerRunning(); | 1145 if (_needsSelenium) _ensureSeleniumServerRunning(); |
| 1146 } | 1146 } |
| 1147 _progress.testAdded(); | 1147 _progress.testAdded(); |
| 1148 _tests.add(test); | 1148 _tests.add(test); |
| 1149 _tryRunTest(); | 1149 _tryRunTest(); |
| 1150 } | 1150 } |
| 1151 | 1151 |
| 1152 /** | 1152 /** |
| 1153 * Monitor the output of the Selenium server, to know when we are ready to | 1153 * Monitor the output of the Selenium server, to know when we are ready to |
| 1154 * begin running tests. | 1154 * begin running tests. |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1286 // the developer doesn't waste his or her time trying to fix a bunch of | 1286 // the developer doesn't waste his or her time trying to fix a bunch of |
| 1287 // tests that appear to be broken but were actually just flakes that | 1287 // tests that appear to be broken but were actually just flakes that |
| 1288 // didn't get retried because there had already been one failure. | 1288 // didn't get retried because there had already been one failure. |
| 1289 bool allowRetry = _MAX_FAILED_NO_RETRY > _progress.numFailedTests; | 1289 bool allowRetry = _MAX_FAILED_NO_RETRY > _progress.numFailedTests; |
| 1290 new RunningProcess(test, allowRetry, this).start(); | 1290 new RunningProcess(test, allowRetry, this).start(); |
| 1291 } | 1291 } |
| 1292 _numProcesses++; | 1292 _numProcesses++; |
| 1293 } | 1293 } |
| 1294 } | 1294 } |
| 1295 } | 1295 } |
| OLD | NEW |