-
Notifications
You must be signed in to change notification settings - Fork 346
Description
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 minimalEver 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 minimalThe 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 minimalExpected 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.