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

Unified Diff: lib/unittest.dart

Issue 971123002: Add a variant on ConsoleReporter that doesn't import dart:io. (Closed) Base URL: git@github.com:dart-lang/unittest@master
Patch Set: Created 5 years, 10 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 | « lib/src/utils.dart ('k') | test/compact_reporter_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/unittest.dart
diff --git a/lib/unittest.dart b/lib/unittest.dart
index e4f36b590f395df1febd7ea447926c42dfe79495..07bc46d46913514784145bf7213d2e2e4bfc5cbb 100644
--- a/lib/unittest.dart
+++ b/lib/unittest.dart
@@ -13,7 +13,7 @@ import 'src/backend/invoker.dart';
import 'src/backend/suite.dart';
import 'src/deprecated/configuration.dart';
import 'src/deprecated/test_case.dart';
-import 'src/runner/console_reporter.dart';
+import 'src/runner/reporter/no_io_compact.dart';
export 'package:matcher/matcher.dart';
@@ -49,9 +49,8 @@ Declarer get _declarer {
_globalDeclarer = new Declarer();
scheduleMicrotask(() {
var suite = new Suite(p.prettyUri(Uri.base), _globalDeclarer.tests);
- // TODO(nweiz): Use a reporter that doesn't import dart:io here.
// TODO(nweiz): Set the exit code on the VM when issue 6943 is fixed.
- new ConsoleReporter([suite]).run();
+ new NoIoCompactReporter([suite], color: true).run();
});
return _globalDeclarer;
}
« no previous file with comments | « lib/src/utils.dart ('k') | test/compact_reporter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698