diff --git a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/TerminalTestReporter.cs b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/TerminalTestReporter.cs index 992cac2034..98193dcde6 100644 --- a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/TerminalTestReporter.cs +++ b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/TerminalTestReporter.cs @@ -86,6 +86,7 @@ public TerminalTestReporter( _testApplicationCancellationTokenSource = testApplicationCancellationTokenSource; _options = options; + Func showProgress = options.ShowProgress; ITerminal terminal; if (_options.AnsiMode == AnsiMode.SimpleAnsi) { @@ -106,9 +107,13 @@ public TerminalTestReporter( }; terminal = useAnsi ? new AnsiTerminal(console) : new NonAnsiTerminal(console); + if (!useAnsi) + { + showProgress = () => false; + } } - _terminalWithProgress = new TestProgressStateAwareTerminal(terminal, _options.ShowProgress); + _terminalWithProgress = new TestProgressStateAwareTerminal(terminal, showProgress); } public void TestExecutionStarted(DateTimeOffset testStartTime, int workerCount, bool isDiscovery)