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

dotnet test logs to console with verbosity set to quiet #3525

Closed
MarinAtanasov opened this issue Mar 28, 2022 · 1 comment
Closed

dotnet test logs to console with verbosity set to quiet #3525

MarinAtanasov opened this issue Mar 28, 2022 · 1 comment

Comments

@MarinAtanasov
Copy link

MarinAtanasov commented Mar 28, 2022

Description

I have a solution with several test projects. I am using this command to run them:

dotnet test <list of compiled assemblies> --nologo --verbosity minimal

Ever since support for running dotnet test on a solution has been added, I have wanted to use it. Especially since it is significantly faster than the previous command.

dotnet test <solution>.sln --nologo --verbosity minimal

The problem is that the output of a run is very messy with console messages that I cannot silence in any way. They are even overlapping because different projects are printing concurrently. Sometimes the test result summary gets split or the console color gets stuck and I have to open a new console window:

Test run for <assembly>.dll (.NETCoreApp,Version=v6.0)
Starting test execution, please wait...
A total of 1 test files matched the specified pattern.

I have tried setting the verbosity to quiet. I have even tried creating my own console logger in the hopes that I can skip those messages. I have not found a way to get a clean output when running the tests by pointing to the solution.

Steps to reproduce

I am using this project: AppBrix
Run dotnet build. Then run this command several times:

dotnet test AppBrix.sln --nologo --verbosity minimal

Expected behavior

The output should be the same as when running the Test.ps1 script after building. Or the messages should be ordered so that all test result summaries are printed at the end in a nice clean way.

Actual behavior

There are a lot of unwanted messages. All of the test projects are printing to the console concurrently. Sometimes the console color becomes stuck after the test execution.

Diagnostic logs

Not needed.

Environment

I am using Windows 10 with dotnet sdk version 6.0.201.

@Evangelink Evangelink added the needs-triage This item should be discussed in the next triage meeting. label Jul 27, 2022
@Evangelink Evangelink added enhancement triaged and removed needs-triage This item should be discussed in the next triage meeting. labels Jul 27, 2022
@nohwnd
Copy link
Member

nohwnd commented Jul 8, 2024

This is a new feature and won't be implemented, we are focusing on adding new features to Testing.Platform instead. https://aka.ms/testingplatform

But we've simplified the banner of vstest at least #5013

@nohwnd nohwnd closed this as not planned Won't fix, can't repro, duplicate, stale Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants