change --machine flag for flutter test to report test progress as JSON (#10848)
(The Flutter plugin will use this to update the UI with test progress.)
This commit is contained in:
@@ -24,6 +24,7 @@ Future<int> runTests(
|
||||
bool enableObservatory: false,
|
||||
bool startPaused: false,
|
||||
bool ipv6: false,
|
||||
bool json: false,
|
||||
TestWatcher watcher,
|
||||
}) async {
|
||||
// Compute the command-line arguments for package:test.
|
||||
@@ -36,6 +37,10 @@ Future<int> runTests(
|
||||
testArgs.add('--concurrency=1');
|
||||
}
|
||||
|
||||
if (json) {
|
||||
testArgs.addAll(<String>['-r', 'json']);
|
||||
}
|
||||
|
||||
testArgs.add('--');
|
||||
testArgs.addAll(testFiles);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user