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

Unified Diff: lib/src/runner/configuration.dart

Issue 1461293005: Add a JSON reporter. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 5 years, 1 month 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: lib/src/runner/configuration.dart
diff --git a/lib/src/runner/configuration.dart b/lib/src/runner/configuration.dart
index 329470fa395cc8ce7d54045fce8a681a129eec17..82e66ffe226bb80ebd7ad28b62a6d35cb9a86b2f 100644
--- a/lib/src/runner/configuration.dart
+++ b/lib/src/runner/configuration.dart
@@ -65,11 +65,12 @@ class Configuration {
parser.addOption("reporter",
abbr: 'r',
help: 'The runner used to print test results.',
- allowed: ['compact', 'expanded'],
+ allowed: ['compact', 'expanded', 'json'],
defaultsTo: Platform.isWindows ? 'expanded' : 'compact',
allowedHelp: {
'compact': 'A single line, updated continuously.',
- 'expanded': 'A separate line for each update.'
+ 'expanded': 'A separate line for each update.',
+ 'json': 'A machine-readable format (see https://goo.gl/0HRhdZ).'
});
parser.addFlag("verbose-trace", negatable: false,
help: 'Whether to emit stack traces with core library frames.');

Powered by Google App Engine
This is Rietveld 408576698