Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip TerminalLogger in context of dotnet test #9066

Merged
merged 4 commits into from
Jul 27, 2023

Conversation

JanKrivanek
Copy link
Member

@JanKrivanek JanKrivanek commented Jul 25, 2023

Fixes #9061

Context

#9061
This is the proposal of option a) (disabling TerminalLogger entirely for dotnet test)

UX

TL-dotnetTests-skip

Note

The approach b) (disabling TerminalLogger only for the test part of the dotnet test) turns out to be not 'hardenable' enough for multi-project solutions due to the fact that MSTest and MSBuild race with writing to a single console and MSBuild might not be quick enough to teporarily pause it's updates.
It looks workable for simple solutions - sample just for reference:

TL-dotnetTests-skip-after-target

@JanKrivanek JanKrivanek marked this pull request as ready for review July 25, 2023 15:35
src/MSBuild/XMake.cs Outdated Show resolved Hide resolved
@JanKrivanek JanKrivanek merged commit fd4d0e5 into dotnet:main Jul 27, 2023
8 checks passed
@JanKrivanek JanKrivanek deleted the proto/tl-dotnettests-disable branch July 27, 2023 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Output mangled when Terminal Logger used in combination with dotnet test
3 participants