Index: test/io.dart |
diff --git a/test/io.dart b/test/io.dart |
index fc727e3dc6103f20d47bf77f2fd32d1bcdb7f32f..1b83064ca17456c28edd57f21cf3f1f41545d2ae 100644 |
--- a/test/io.dart |
+++ b/test/io.dart |
@@ -94,18 +94,17 @@ StreamMatcher containsInOrder(Iterable<String> strings) => |
inOrder(strings.map((string) => consumeThrough(contains(string)))); |
/// Runs the test executable with the package root set properly. |
-ScheduledProcess runTest(List args, {bool compact: false, |
+ScheduledProcess runTest(List args, {String reporter, |
int concurrency, Map<String, String> environment}) { |
- if (concurrency == null) concurrency = 1; |
+ reporter ??= "expanded"; |
+ concurrency ??= 1; |
var allArgs = [ |
p.absolute(p.join(packageDir, 'bin/test.dart')), |
"--package-root=${p.join(packageDir, 'packages')}", |
- "--concurrency=$concurrency" |
- ]; |
- |
- if (!compact) allArgs.addAll(["-r", "expanded"]); |
- allArgs.addAll(args); |
+ "--concurrency=$concurrency", |
+ "--reporter=$reporter" |
+ ]..addAll(args); |
if (environment == null) environment = {}; |
environment.putIfAbsent("_UNITTEST_USE_COLOR", () => "false"); |