Skip to content

Commit f9d1bb9

Browse files
committed
Don't show passed tests in hotreload by default
1 parent c7996c5 commit f9d1bb9

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/Platform/Microsoft.Testing.Platform/OutputDevice/TerminalOutputDevice.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,12 @@ public Task InitializeAsync()
123123
bool noAnsi = _commandLineOptions.IsOptionSet(TerminalTestReporterCommandLineOptionsProvider.NoAnsiOption);
124124
bool noProgress = _commandLineOptions.IsOptionSet(TerminalTestReporterCommandLineOptionsProvider.NoProgressOption);
125125

126-
// IsHotReloadEnabled is not set to true here, even if the session will be HotReload,
126+
// _runtimeFeature.IsHotReloadEnabled is not set to true here, even if the session will be HotReload,
127127
// we need to postpone that decision until the first test result.
128-
Func<bool> showPassed = () => _runtimeFeature.IsHotReloadEnabled;
128+
//
129+
// This works but is NOT USED, we prefer to have the same experience of not showing passed tests in hotReload mode as in normal mode.
130+
// Func<bool> showPassed = () => _runtimeFeature.IsHotReloadEnabled;
131+
Func<bool> showPassed = () => false;
129132
bool outputOption = _commandLineOptions.TryGetOptionArgumentList(TerminalTestReporterCommandLineOptionsProvider.OutputOption, out string[]? arguments);
130133
if (outputOption && arguments?.Length > 0 && TerminalTestReporterCommandLineOptionsProvider.OutputOptionDetailedArgument.Equals(arguments[0], StringComparison.OrdinalIgnoreCase))
131134
{

0 commit comments

Comments
 (0)