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

LoggerRunSettings not working to set verbosity #10369

Open
rcocks-hl opened this issue Oct 3, 2024 · 4 comments
Open

LoggerRunSettings not working to set verbosity #10369

rcocks-hl opened this issue Oct 3, 2024 · 4 comments

Comments

@rcocks-hl
Copy link

rcocks-hl commented Oct 3, 2024

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
Copy link
Author

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

@nohwnd
Copy link
Member

nohwnd commented Oct 3, 2024

Is this a regression or it never worked before?

@rcocks-hl
Copy link
Author

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

@gregbradley
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants