Index: pkg/testing/lib/src/discover.dart |
diff --git a/pkg/testing/lib/src/discover.dart b/pkg/testing/lib/src/discover.dart |
index 14d8ead32fe985c470b8d99d0ee53ee2f99cd0e4..2690ce969824c55bda4294be5432a69c4ac486a0 100644 |
--- a/pkg/testing/lib/src/discover.dart |
+++ b/pkg/testing/lib/src/discover.dart |
@@ -16,7 +16,8 @@ final Uri dartSdk = computeDartSdk(); |
/// Common arguments when running a dart program. Returns a copy that can |
/// safely be modified by caller. |
-List<String> get dartArguments => <String>["-c", "--packages=$packageConfig"]; |
+List<String> get dartArguments => |
+ <String>["-c", "--packages=${packageConfig.toFilePath()}"]; |
Stream<TestDescription> listTests(List<Uri> testRoots, {Pattern pattern}) { |
StreamController<TestDescription> controller = |