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

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: nits 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
« no previous file with comments | « tools/testing/dart/test_options.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/test_progress.dart
diff --git a/tools/testing/dart/test_progress.dart b/tools/testing/dart/test_progress.dart
index a4507dc425cdec0291bd129cc322c85ff08335ad..e93a888e3dc479eb304e35ad24fb639178d173d3 100644
--- a/tools/testing/dart/test_progress.dart
+++ b/tools/testing/dart/test_progress.dart
@@ -308,8 +308,15 @@ class UnexpectedCrashDumpArchiver extends EventListener {
class SummaryPrinter extends EventListener {
+ final bool jsonOnly;
+
+ SummaryPrinter({this.jsonOnly});
+
void allTestsKnown() {
- if (summaryReport.total > 0) {
+ if (jsonOnly) {
+ print("JSON:");
+ print(JSON.encode(summaryReport.values));
+ } else {
summaryReport.printReport();
}
}
« no previous file with comments | « tools/testing/dart/test_options.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698