Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Side by Side Diff: tools/testing/dart/test_runner.dart

Issue 11275025: Clean up test.dart framework. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/testing/dart/test_options.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « tools/testing/dart/test_options.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698