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

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

Issue 11098075: Automagically start up selenium server for Safari. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 months 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
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 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after
1099 } 1099 }
1100 if (!_isSeleniumAvailable) { 1100 if (!_isSeleniumAvailable) {
1101 _startSeleniumServer(); 1101 _startSeleniumServer();
1102 } 1102 }
1103 }; 1103 };
1104 } 1104 }
1105 } 1105 }
1106 1106
1107 void _runTest(TestCase test) { 1107 void _runTest(TestCase test) {
1108 if (test.usesWebDriver) { 1108 if (test.usesWebDriver) {
1109 browserUsed = test.configuration['browser']; 1109 browserUsed = test.configuration['runtime'];
1110 if (_needsSelenium) _ensureSeleniumServerRunning(); 1110 if (_needsSelenium) _ensureSeleniumServerRunning();
1111 } 1111 }
1112 _progress.testAdded(); 1112 _progress.testAdded();
1113 _tests.add(test); 1113 _tests.add(test);
1114 _tryRunTest(); 1114 _tryRunTest();
1115 } 1115 }
1116 1116
1117 /** 1117 /**
1118 * Monitor the output of the Selenium server, to know when we are ready to 1118 * Monitor the output of the Selenium server, to know when we are ready to
1119 * begin running tests. 1119 * begin running tests.
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1247 // the developer doesn't waste his or her time trying to fix a bunch of 1247 // the developer doesn't waste his or her time trying to fix a bunch of
1248 // tests that appear to be broken but were actually just flakes that 1248 // tests that appear to be broken but were actually just flakes that
1249 // didn't get retried because there had already been one failure. 1249 // didn't get retried because there had already been one failure.
1250 bool allowRetry = _MAX_FAILED_NO_RETRY > _progress.numFailedTests; 1250 bool allowRetry = _MAX_FAILED_NO_RETRY > _progress.numFailedTests;
1251 new RunningProcess(test, allowRetry, this).start(); 1251 new RunningProcess(test, allowRetry, this).start();
1252 } 1252 }
1253 _numProcesses++; 1253 _numProcesses++;
1254 } 1254 }
1255 } 1255 }
1256 } 1256 }
OLDNEW
« tools/testing/dart/test_options.dart ('K') | « tools/testing/dart/test_options.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698