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

Unified Diff: dart/tools/testing/dart/test_progress.dart

Issue 11000049: Add progress indicator for co19 updating. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dart/tools/testing/dart/co19_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tools/testing/dart/test_progress.dart
diff --git a/dart/tools/testing/dart/test_progress.dart b/dart/tools/testing/dart/test_progress.dart
index d157f23935a521a94f0a1c5aeaeb885f2e513736..5343ac0d363e02e6e8664057cf2676980aa1d4bd 100644
--- a/dart/tools/testing/dart/test_progress.dart
+++ b/dart/tools/testing/dart/test_progress.dart
@@ -30,6 +30,8 @@ class ProgressIndicator {
return new StatusProgressIndicator(startTime, printTiming);
case 'buildbot':
return new BuildbotProgressIndicator(startTime, printTiming);
+ case 'diff':
+ return new DiffProgressIndicator(startTime, printTiming);
default:
assert(false);
break;
@@ -379,3 +381,29 @@ class BuildbotProgressIndicator extends ProgressIndicator {
super._printFailureSummary();
}
}
+
+class DiffProgressIndicator extends ColorProgressIndicator {
+ Map<String, List<String>> failures = new Map<String, List<String>>();
+
+ DiffProgressIndicator(Date startTime, bool printTiming)
+ : super(startTime, printTiming);
+
+ void _printFailureOutput(TestCase test) {
+ List<String> configurationFailures =
+ failures.putIfAbsent(test.configurationString, () => <String>[]);
+ configurationFailures.add('${test.displayName}: ${test.output.result}');
+ }
+
+ void _printFailureSummary() {
+ failures.forEach((key, lines) {
+ print('');
+ print('');
+ print('$key:');
+ lines.sort((a, b) => a.compareTo(b));
+ for (String line in lines) {
+ print(' $line');
+ }
+ });
+ _printStatus();
+ }
+}
« no previous file with comments | « dart/tools/testing/dart/co19_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698