-
Notifications
You must be signed in to change notification settings - Fork 326
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
does not respect verbosity
on CircleCI
#2305
Comments
WorkaroundI can fix this issue by adding before - run: dotnet test -c Debug "--logger:Console;verbosity=minimal" after - run: dotnet test -c Debug "--logger:Console;verbosity=minimal" < /dev/null also you can omit - run: dotnet test -c Debug < /dev/null See config.yml for the detail. |
So the issue is relates to the #2080 |
There was a recent bug fix for case sensitivity of verbosity, maybe this was also affected by it? #2300 could you try with the latest dotnet test? Please also share the few lines of output after you run the command, there is a version of the test platform cli tools that are shipping with the dotnet test. New dotnet test that uses 16.5.0 that has fix for the issue should be available in the upcoming days. Otherwise if you are interested the linked PR is where the code is dealing with verbosity parsing, so the error would be somewhere there. A PR to fix this would be very welcome 🙂 |
I have same issue on TeamCity. Locally everything works but on build server I have verbosity with debug info in logs. Build tools installed on server have version 16.5.
|
thanks a lot! |
Description
When running
dotnet test
on CircleCI, some how it's default verbosity was recognized asquiet
, normally default verbosity isminimal
.Even if I want to override verbosity, it ignores arguments override
--verbosity minimal
or"--logger:Console;verbosity=normal"
.So, there are 2 problems running
dotnet test
on CircleCI.dotnet test
verbosity level is not respecting defaultminimal
, but it usequiet
.dotnet test
could not override verbosity level with--verbosity
or"--logger:Console;verbosity=minimal"
.Steps to reproduce
Here's minimal project to reproduce issue.
.circleci/config.yml
and configuredotnet build
anddotnet test -c Debug "--logger:Console;verbosity=minimal"
runs ondotnetsdk:3.1
.Assert.False(true);
.Expected behavior
dotnet test -c Debug "--logger:Console;verbosity=minimal"
should override logger verbosity fromquiet
tominimal
, and output failed test detail on circleci.Actual behavior
dotnet test -c Debug "--logger:Console;verbosity=minimal"
could not override logger verbosity fromquiet
tominimal
, and output not contains failed test detail on circleci.see circleci build log.
Diagnostic logs
you can retrieve from circleci job.
It seems like verbosity is successfully override with what I expected, but result is not according to verbosity..
Environment
The text was updated successfully, but these errors were encountered: