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

Unified Diff: pkg/unittest/lib/compact_vm_config.dart

Issue 101753006: Fix printing of compact_vm_config when test status change (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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 | pkg/unittest/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/lib/compact_vm_config.dart
diff --git a/pkg/unittest/lib/compact_vm_config.dart b/pkg/unittest/lib/compact_vm_config.dart
index 69560ac08861eef484e61b1bf8753bd8145f3fc6..c531d80d8a2c554638a44441b44896983220a771 100644
--- a/pkg/unittest/lib/compact_vm_config.dart
+++ b/pkg/unittest/lib/compact_vm_config.dart
@@ -67,6 +67,20 @@ class CompactVMConfiguration extends VMConfiguration {
}
}
+ void onTestResultChanged(TestCase test) {
+ _pass--;
+ _fail++;
+ _progressLine(_start, _pass, _fail, test.description);
+ print('');
+ if (test.message != '') {
+ print(indent(test.message));
+ }
+
+ if (test.stackTrace != null) {
+ print(indent(test.stackTrace.toString()));
+ }
+ }
+
void onDone(bool success) {
// Override and don't call the superclass onDone() to avoid printing the
// "unittest-suite-..." boilerplate.
« no previous file with comments | « no previous file | pkg/unittest/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698