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

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

Issue 10521003: Eliminate standalone timeout_test, pass_test, and fail_test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Change a forgotten string. Created 8 years, 6 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
« no previous file with comments | « tools/testing/dart/test_progress.dart ('k') | tools/testing/dart/test_suite.dart » ('j') | 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.
11 */ 11 */
12 #library("test_runner"); 12 #library("test_runner");
13 13
14 #import("dart:io"); 14 #import("dart:io");
15 #import("dart:builtin");
16 #import("status_file_parser.dart"); 15 #import("status_file_parser.dart");
17 #import("test_progress.dart"); 16 #import("test_progress.dart");
18 #import("test_suite.dart"); 17 #import("test_suite.dart");
19 18
20 final int NO_TIMEOUT = 0; 19 final int NO_TIMEOUT = 0;
21 20
22 /** A command executed as a step in a test case. */ 21 /** A command executed as a step in a test case. */
23 class Command { 22 class Command {
24 /** Path to the executable of this command. */ 23 /** Path to the executable of this command. */
25 String executable; 24 String executable;
(...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 // the developer doesn't waste his or her time trying to fix a bunch of 1170 // the developer doesn't waste his or her time trying to fix a bunch of
1172 // tests that appear to be broken but were actually just flakes that 1171 // tests that appear to be broken but were actually just flakes that
1173 // didn't get retried because there had already been one failure. 1172 // didn't get retried because there had already been one failure.
1174 bool allowRetry = _MAX_FAILED_NO_RETRY > _progress.numFailedTests; 1173 bool allowRetry = _MAX_FAILED_NO_RETRY > _progress.numFailedTests;
1175 new RunningProcess(test, allowRetry, this).start(); 1174 new RunningProcess(test, allowRetry, this).start();
1176 } 1175 }
1177 _numProcesses++; 1176 _numProcesses++;
1178 } 1177 }
1179 } 1178 }
1180 } 1179 }
OLDNEW
« no previous file with comments | « tools/testing/dart/test_progress.dart ('k') | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698