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

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

Issue 9649015: Change string used to annotate static type issues to 'static type warning' in multitest (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merged up to tip Created 8 years, 9 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/multitest.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.
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « tools/testing/dart/multitest.dart ('k') | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698