Index: pkg/unittest/test/unittest_test.dart |
diff --git a/pkg/unittest/test/unittest_test.dart b/pkg/unittest/test/unittest_test.dart |
index 68d295d404f73db0480beeaa985ea506c1ef0062..98fe22a287879654ad9fab0cdd509f9f31ebde16 100644 |
--- a/pkg/unittest/test/unittest_test.dart |
+++ b/pkg/unittest/test/unittest_test.dart |
@@ -61,15 +61,19 @@ class TestConfiguration extends Configuration { |
// The port to communicate with the parent isolate |
SendPort _port; |
+ String _result; |
TestConfiguration(this._port); |
- void onDone(int passed, int failed, int errors, List<TestCase> results, |
+ void onSummary(int passed, int failed, int errors, List<TestCase> results, |
String uncaughtError) { |
- var result = buildStatusString(passed, failed, errors, results, |
+ _result = buildStatusString(passed, failed, errors, results, |
count: count, setup: setup, teardown: teardown, |
uncaughtError: uncaughtError); |
- _port.send(result); |
+ } |
+ |
+ void onDone(bool success) { |
+ _port.send(_result); |
} |
} |
runTest() { |