vstest icon indicating copy to clipboard operation
vstest copied to clipboard

LoggerRunSettings not working to set verbosity

Open rcocks-hl opened this issue 1 year ago • 4 comments

Description

When I run:

dotnet test -v:q --logger "console;verbosity=minimal"  --settings .\.runsettings <project>

Then I get quiet build logging and normal verbosity logging.

But when I drop the --logger switch and rely on the LoggerRunSettings block in my .runsettings file, then I don't get normal verbosity output.

<LoggerRunSettings>
    <Loggers>
        <Logger friendlyName="console" enabled="True">
            <Configuration>
                <Verbosity>normal</Verbosity>
            </Configuration>
        </Logger>
    </Loggers>
  </LoggerRunSettings>

rcocks-hl avatar Oct 03 '24 16:10 rcocks-hl

Added minimal reproduction at https://github.com/rcocks-hl/NUnit3Examples

rcocks-hl avatar Oct 03 '24 18:10 rcocks-hl

Is this a regression or it never worked before?

nohwnd avatar Oct 03 '24 20:10 nohwnd

@nohwnd Unfortunately I can't answer that question, this is the first time I've tried these settings.

rcocks-hl avatar Oct 03 '24 20:10 rcocks-hl

We have also encountered this issue. It was working when we were using .NET 6 and we recently upgraded our project to .NET 8 and this has stopped working as before.

gregbradley avatar Oct 31 '24 03:10 gregbradley