Skip to content

Conversation

majocha
Copy link
Contributor

@majocha majocha commented Aug 11, 2025

I noticed that the testhost fails catastrophically when executing some selected tests with "run until failure" in VS.

The reason is that apparently VS can keep alive the testhost and execute xUnit's CreateExecutor and RunTestCases many times, but we did some one-time initialisation there. In effect TestConsole redirectors returned null, bringing everything down.

This moves the initialization again to a safer place. Also adds some defenses to never return null when a redirected stream is expected.

@majocha
Copy link
Contributor Author

majocha commented Aug 11, 2025

Wow, 36 minutes. this is the fastest run I've ever seen here image

@majocha majocha marked this pull request as ready for review August 11, 2025 14:39
@majocha majocha requested a review from a team as a code owner August 11, 2025 14:39
@github-project-automation github-project-automation bot moved this from New to In Progress in F# Compiler and Tooling Aug 11, 2025
Copy link
Contributor

✅ No release notes required

@T-Gro T-Gro merged commit 6547740 into dotnet:main Aug 12, 2025
38 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in F# Compiler and Tooling Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants