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

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

Issue 9621015: Multitest annotations now accept multiple annotations on one line. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 // OK to Skip error output that doesn't match the machine format 330 // OK to Skip error output that doesn't match the machine format
331 } 331 }
332 if (testCase.info != null 332 if (testCase.info != null
333 && testCase.info.optionsFromFile['isMultitest']) { 333 && testCase.info.optionsFromFile['isMultitest']) {
334 return _didMultitestFail(errors, staticWarnings); 334 return _didMultitestFail(errors, staticWarnings);
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 String outcome = testCase.info.multitestOutcome; 340 Set<String> outcome = testCase.info.multitestOutcome;
Bill Hesse 2012/03/08 10:21:49 It should be checked that we never reach here with
zundel 2012/03/08 13:18:00 Added assertion
341 if ((outcome == '' || outcome == 'compile-time error') && errors.length > 0) { 341 if ((outcome.contains('') || outcome.contains('compile-time error'))
Bill Hesse 2012/03/08 10:21:49 Isn't this check about not containing 'run-time er
zundel 2012/03/08 13:18:00 Besides runtime-error, we also don't want 'errors'
342 && errors.length > 0) {
342 return true; 343 return true;
343 } else if (outcome == 'static type error' && staticWarnings.length > 0) { 344 } else if (outcome.contains('static type error')
345 && staticWarnings.length > 0) {
344 return true; 346 return true;
345 } 347 }
346 return false; 348 return false;
347 } 349 }
348 350
349 bool _didStandardTestFail(List errors, List staticWarnings) { 351 bool _didStandardTestFail(List errors, List staticWarnings) {
350 bool hasFatalTypeErrors = false; 352 bool hasFatalTypeErrors = false;
351 int numStaticTypeAnnotations = 0; 353 int numStaticTypeAnnotations = 0;
352 int numCompileTimeAnnotations = 0; 354 int numCompileTimeAnnotations = 0;
353 var isStaticClean = false; 355 var isStaticClean = false;
(...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after
1126 // the developer doesn't waste his or her time trying to fix a bunch of 1128 // the developer doesn't waste his or her time trying to fix a bunch of
1127 // tests that appear to be broken but were actually just flakes that 1129 // tests that appear to be broken but were actually just flakes that
1128 // didn't get retried because there had already been one failure. 1130 // didn't get retried because there had already been one failure.
1129 bool allowRetry = _MAX_FAILED_NO_RETRY > _progress.numFailedTests; 1131 bool allowRetry = _MAX_FAILED_NO_RETRY > _progress.numFailedTests;
1130 new RunningProcess(test, allowRetry, this).start(); 1132 new RunningProcess(test, allowRetry, this).start();
1131 } 1133 }
1132 _numProcesses++; 1134 _numProcesses++;
1133 } 1135 }
1134 } 1136 }
1135 } 1137 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698