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

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

Issue 846433002: Allow for reporting with the --list option (Closed) Base URL: http://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
« no previous file with comments | « no previous file | tools/testing/dart/test_runner.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/test_configurations.dart
===================================================================
--- tools/testing/dart/test_configurations.dart (revision 42685)
+++ tools/testing/dart/test_configurations.dart (working copy)
@@ -224,7 +224,9 @@
}
var eventListener = [];
- if (progressIndicator != 'silent') {
+
+ // We don't print progress if we list tests.
+ if (progressIndicator != 'silent' && !listTests) {
var printFailures = true;
var formatter = new Formatter();
if (progressIndicator == 'color') {
@@ -261,7 +263,13 @@
eventListener.add(new UnexpectedCrashDumpArchiver());
}
- eventListener.add(new ExitCodeSetter());
+ // The only progress indicator when listing tests should be the
+ // the summary printer.
+ if (listTests) {
+ eventListener.add(new SummaryPrinter());
+ } else {
+ eventListener.add(new ExitCodeSetter());
+ }
void startProcessQueue() {
// [firstConf] is needed here, since the ProcessQueue needs to know the
« no previous file with comments | « no previous file | tools/testing/dart/test_runner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698