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

Is there an option to not log skipped tests to console when using dotnet test #10453

Open
nguerrera opened this issue Nov 15, 2024 · 5 comments

Comments

@nguerrera
Copy link

nguerrera commented Nov 15, 2024

I would like to suppress all of the following output (most of it yellow) when running dotnet test:

[xUnit.net 00:00:31.15]     TestName [SKIP]
  Skipped TestName [1 ms]

Can this be done? I've searched high and low before creating this issue with no luck.

Also note that I don't want to turn down the verbosity so low that I miss other important things, I just don't want to hear all the skipped test details every time I run.

@nohwnd
Copy link
Member

nohwnd commented Nov 18, 2024

There is no option to not show just the skipped tests, there is also no plan to add it.

@nguerrera
Copy link
Author

Would you accept a PR that adds it?

@nohwnd nohwnd closed this as completed Nov 20, 2024
@nohwnd nohwnd reopened this Nov 20, 2024
@nohwnd
Copy link
Member

nohwnd commented Nov 20, 2024

I can accept a PR but we need to design it first, and hopefully get some upvotes on this issue, or a good motivation to add it. Maybe it would be possible for you to migrate to our new testing.platform? (I don't think we have that option there either, but there is a better chance of adding it.)

@nohwnd
Copy link
Member

nohwnd commented Nov 20, 2024

https://learn.microsoft.com/en-us/dotnet/core/testing/unit-testing-platform-intro?tabs=dotnetcli

@nguerrera
Copy link
Author

I will look into the new platform. This is the first I've heard of it. :) Then I'll come back and talk about motivation and design. :)

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

2 participants