microsoft / vstest

Visual Studio Test Platform is the runner and engine that powers test explorer and vstest.console.
MIT License
899 stars 323 forks source link

LoggerRunSettings not working to set verbosity #10369

Open rcocks-hl opened 1 month ago

rcocks-hl commented 1 month ago

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 commented 1 month ago

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

nohwnd commented 1 month ago

Is this a regression or it never worked before?

rcocks-hl commented 1 month ago

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

gregbradley commented 2 weeks ago

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.