| 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();
|
| }
|
| }
|
|
|