Skip to content

Commit 5a56cdb

Browse files
Clean TestProgressState on TestExecutionCompleted by @Youssef1313 in #6505 (backport to rel/3.10) (#6551)
Co-authored-by: Youssef1313 <youssefvictor00@gmail.com>
1 parent 1dc6d2d commit 5a56cdb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/TerminalTestReporter.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,11 @@ public void TestExecutionCompleted(DateTimeOffset endTime)
159159
_terminalWithProgress.WriteToTerminal(_isDiscovery ? AppendTestDiscoverySummary : AppendTestRunSummary);
160160

161161
NativeMethods.RestoreConsoleMode(_originalConsoleMode);
162+
163+
// This is relevant for HotReload scenarios. We want the next test sessions to start
164+
// on a new TestProgressState
165+
_testProgressState = null;
166+
162167
_buildErrorsCount = 0;
163168
_testExecutionStartTime = null;
164169
_testExecutionEndTime = null;

0 commit comments

Comments
 (0)