Index: lib/src/runner/vm/isolate_listener.dart |
diff --git a/lib/src/runner/vm/isolate_listener.dart b/lib/src/runner/vm/isolate_listener.dart |
index 46c05f2592c70c8e09abdd8a61609a80ec76da1e..b40140e7b38d06c3736b257fcef63e575d513284 100644 |
--- a/lib/src/runner/vm/isolate_listener.dart |
+++ b/lib/src/runner/vm/isolate_listener.dart |
@@ -8,6 +8,7 @@ import 'dart:isolate'; |
import 'dart:async'; |
import '../../backend/declarer.dart'; |
+import '../../backend/metadata.dart'; |
import '../../backend/suite.dart'; |
import '../../backend/test.dart'; |
import '../../util/remote_exception.dart'; |
@@ -27,7 +28,9 @@ class IsolateListener { |
/// |
/// Once that's done, this starts listening for commands about which tests to |
/// run. |
- static void start(SendPort sendPort, Function getMain()) { |
+ /// |
+ /// [metadata] is the suite-level metadata defined at the top of the file. |
+ static void start(SendPort sendPort, Metadata metadata, Function getMain()) { |
var main; |
try { |
main = getMain(); |
@@ -56,7 +59,8 @@ class IsolateListener { |
return; |
} |
- new IsolateListener._(new Suite(declarer.tests))._listen(sendPort); |
+ new IsolateListener._(new Suite(declarer.tests, metadata: metadata)) |
+ ._listen(sendPort); |
} |
/// Sends a message over [sendPort] indicating that the tests failed to load. |