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

[Bug]: Output mangled when Terminal Logger used in combination with dotnet test #9061

Closed
JanKrivanek opened this issue Jul 24, 2023 · 0 comments · Fixed by #9066
Closed

[Bug]: Output mangled when Terminal Logger used in combination with dotnet test #9061

JanKrivanek opened this issue Jul 24, 2023 · 0 comments · Fixed by #9066
Assignees
Labels
Area: Terminal Logger Problems with the livelogger/fancylogger/terminallogger -tl functionality. Iteration:2023July triaged

Comments

@JanKrivanek
Copy link
Member

JanKrivanek commented Jul 24, 2023

Reported by @baronfel

Context

Terminal Logger and tests running target are both trying to use the output stream in output rewinding/overwriting way - resulting in mangled output

image

Root cause: microsoft/vstest#1503

Discussed quick fixes for now:

  • Disable TerminalLogger if running from the dotnet test (with adding low-pri message about this - especially for cases where the Terminal Logger was explicitly opted in)
  • Flip TerminalLogger of once detecting that the test target is starting

Other possible solutions:

  • Adding a quiet mode to Terminal Logger (to avoid any output except the warns/errors)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Terminal Logger Problems with the livelogger/fancylogger/terminallogger -tl functionality. Iteration:2023July triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants