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

Unified Diff: tools/test.dart

Issue 12302016: Refactoring of ProgressIndicator (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 | « tests/standalone/io/test_runner_test.dart ('k') | tools/test-runtime.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/test.dart
diff --git a/tools/test.dart b/tools/test.dart
index 61b81f23c6be6a64b9447816839bd7c49b8b4f22..06d952d2314a8ce7603a56ff63fcb00b1d6e4c7b 100755
--- a/tools/test.dart
+++ b/tools/test.dart
@@ -173,13 +173,42 @@ main() {
DebugLogger.close();
}
+ var eventListener = [];
+ if (progressIndicator != 'silent') {
+ var printFailures = true;
+ var formatter = new Formatter();
+ if (progressIndicator == 'color') {
+ progressIndicator = 'compact';
+ formatter = new ColorFormatter();
+ }
+ if (progressIndicator == 'diff') {
+ progressIndicator = 'compact';
+ formatter = new ColorFormatter();
+ printFailures = false;
+ eventListener.add(new StatusFileUpdatePrinter());
+ }
+ eventListener.add(new SummaryPrinter());
+ eventListener.add(new FlakyLogWriter());
+ if (printFailures) {
+ eventListener.add(new TestFailurePrinter(formatter));
+ }
+ eventListener.add(new ProgressIndicator.fromName(progressIndicator,
+ startTime,
+ formatter));
+ if (printTiming) {
+ eventListener.add(new TimingPrinter(startTime));
+ }
+ eventListener.add(new SkippedCompilationsPrinter());
+ eventListener.add(new LeftOverTempDirPrinter());
+ }
+ eventListener.add(new ExitCodeSetter());
+
// Start process queue.
new ProcessQueue(maxProcesses,
maxBrowserProcesses,
- progressIndicator,
startTime,
- printTiming,
testSuites,
+ eventListener,
allTestsFinished,
verbose,
listTests);
« no previous file with comments | « tests/standalone/io/test_runner_test.dart ('k') | tools/test-runtime.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698