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

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

Issue 847873004: Outputing comma-separated report with percentages (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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
Index: tools/testing/dart/test_progress.dart
diff --git a/tools/testing/dart/test_progress.dart b/tools/testing/dart/test_progress.dart
index bb31d29f6922a3ecf3b37fb303bb8f945c9f42aa..e93a888e3dc479eb304e35ad24fb639178d173d3 100644
--- a/tools/testing/dart/test_progress.dart
+++ b/tools/testing/dart/test_progress.dart
@@ -10,6 +10,7 @@ import "dart:io" as io;
import "dart:convert" show JSON;
import "path.dart";
import "status_file_parser.dart";
+import "summary_report.dart";
import "test_runner.dart";
import "test_suite.dart";
import "utils.dart";
@@ -307,9 +308,16 @@ class UnexpectedCrashDumpArchiver extends EventListener {
class SummaryPrinter extends EventListener {
+ final bool jsonOnly;
+
+ SummaryPrinter({this.jsonOnly});
+
void allTestsKnown() {
- if (SummaryReport.total > 0) {
- SummaryReport.printReport();
+ if (jsonOnly) {
+ print("JSON:");
+ print(JSON.encode(summaryReport.values));
+ } else {
+ summaryReport.printReport();
}
}
}

Powered by Google App Engine
This is Rietveld 408576698