Commit 05562d57 authored by Phil Quitslund's avatar Phil Quitslund Committed by GitHub

Quiet debug test runner output when in machine mode. (#11228)

* Quiet debug test runner output when in machine mode.

See: https://github.com/flutter/flutter-intellij/issues/1176

* json => machine
parent 547708b3
...@@ -209,7 +209,7 @@ class TestCommand extends FlutterCommand { ...@@ -209,7 +209,7 @@ class TestCommand extends FlutterCommand {
enableObservatory: collector != null || startPaused, enableObservatory: collector != null || startPaused,
startPaused: startPaused, startPaused: startPaused,
ipv6: argResults['ipv6'], ipv6: argResults['ipv6'],
json: machine, machine: machine,
); );
if (collector != null) { if (collector != null) {
......
...@@ -54,6 +54,7 @@ void installHook({ ...@@ -54,6 +54,7 @@ void installHook({
@required String shellPath, @required String shellPath,
TestWatcher watcher, TestWatcher watcher,
bool enableObservatory: false, bool enableObservatory: false,
bool machine: false,
bool startPaused: false, bool startPaused: false,
int observatoryPort, int observatoryPort,
int diagnosticPort, int diagnosticPort,
...@@ -66,6 +67,7 @@ void installHook({ ...@@ -66,6 +67,7 @@ void installHook({
() => new _FlutterPlatform( () => new _FlutterPlatform(
shellPath: shellPath, shellPath: shellPath,
watcher: watcher, watcher: watcher,
machine: machine,
enableObservatory: enableObservatory, enableObservatory: enableObservatory,
startPaused: startPaused, startPaused: startPaused,
explicitObservatoryPort: observatoryPort, explicitObservatoryPort: observatoryPort,
...@@ -84,6 +86,7 @@ class _FlutterPlatform extends PlatformPlugin { ...@@ -84,6 +86,7 @@ class _FlutterPlatform extends PlatformPlugin {
@required this.shellPath, @required this.shellPath,
this.watcher, this.watcher,
this.enableObservatory, this.enableObservatory,
this.machine,
this.startPaused, this.startPaused,
this.explicitObservatoryPort, this.explicitObservatoryPort,
this.explicitDiagnosticPort, this.explicitDiagnosticPort,
...@@ -95,6 +98,7 @@ class _FlutterPlatform extends PlatformPlugin { ...@@ -95,6 +98,7 @@ class _FlutterPlatform extends PlatformPlugin {
final String shellPath; final String shellPath;
final TestWatcher watcher; final TestWatcher watcher;
final bool enableObservatory; final bool enableObservatory;
final bool machine;
final bool startPaused; final bool startPaused;
final int explicitObservatoryPort; final int explicitObservatoryPort;
final int explicitDiagnosticPort; final int explicitDiagnosticPort;
...@@ -230,7 +234,7 @@ class _FlutterPlatform extends PlatformPlugin { ...@@ -230,7 +234,7 @@ class _FlutterPlatform extends PlatformPlugin {
assert(processObservatoryUri == null); assert(processObservatoryUri == null);
assert(explicitObservatoryPort == null || assert(explicitObservatoryPort == null ||
explicitObservatoryPort == detectedUri.port); explicitObservatoryPort == detectedUri.port);
if (startPaused) { if (startPaused && !machine) {
printStatus('The test process has been started.'); printStatus('The test process has been started.');
printStatus('You can now connect to it using observatory. To connect, load the following Web site in your browser:'); printStatus('You can now connect to it using observatory. To connect, load the following Web site in your browser:');
printStatus(' $detectedUri'); printStatus(' $detectedUri');
......
...@@ -26,7 +26,7 @@ Future<int> runTests( ...@@ -26,7 +26,7 @@ Future<int> runTests(
bool enableObservatory: false, bool enableObservatory: false,
bool startPaused: false, bool startPaused: false,
bool ipv6: false, bool ipv6: false,
bool json: false, bool machine: false,
TestWatcher watcher, TestWatcher watcher,
}) async { }) async {
// Compute the command-line arguments for package:test. // Compute the command-line arguments for package:test.
...@@ -39,7 +39,7 @@ Future<int> runTests( ...@@ -39,7 +39,7 @@ Future<int> runTests(
testArgs.add('--concurrency=1'); testArgs.add('--concurrency=1');
} }
if (json) { if (machine) {
testArgs.addAll(<String>['-r', 'json']); testArgs.addAll(<String>['-r', 'json']);
} }
...@@ -66,6 +66,7 @@ Future<int> runTests( ...@@ -66,6 +66,7 @@ Future<int> runTests(
shellPath: shellPath, shellPath: shellPath,
watcher: watcher, watcher: watcher,
enableObservatory: enableObservatory, enableObservatory: enableObservatory,
machine: machine,
startPaused: startPaused, startPaused: startPaused,
serverType: serverType, serverType: serverType,
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment