-
Notifications
You must be signed in to change notification settings - Fork 324
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
Improve output of dotnet test
#3842
Comments
The request here is to improve the default output from
And when runnning test locally I can just Rider test runner |
I'd like to add that I would really appreciate this feature as well. Honestly, it doesn't even need to be that big of a change. If we could avoid outputting the entire test results on a single line, that would be a huge advantage. A simple change such as changing
would be an enormous improvement. |
The change could be done, but in order to do that we would have redesign how tests are being run. We are also working on a reporter that is using msbuild in a more standard way. This is implemented in net9 #2702 (comment) and can be enabled by providing |
it's a little bit ridiculous, that one needs to do parameter gymnastics with I mean we are not talking of "crazy" improvements like grouping by class. But it would be nice to make "dotnet test" work like a tool from the 2020s. Not like a tool from the 2000s and .NET 1.0. |
I came across this issue and decided to do something about it 🤷 now you can run: You can add Since it's a post-run renderer, no in-progress is provided. It just scans the current dir by default (unless |
@kzu this is cool -- some of my output is not emitting though is it only in detailed verbosity? (https://github.com/timheuer/xunitplay) |
@kzu - loving this! ❤️ how did u wire up GH with trx, please? Link-example? 🧝🏻 🪄 EDIT: Side Quest Here's what I do with GH actions + testing + code coverage. Could this work with your dotnet-trx?
could i just add the |
Yeah if you just run
|
That is indeed how it should Just Work :) The GH integration uses the github CLI. See https://github.com/devlooped/dotnet-trx/blob/main/src/dotnet-trx/TrxCommand.cs#L221-L256 |
@timheuer I'm just reading from the trx, so whatever all the various test frameworks emit and the logger collects, is what ends up in there. I only use xunit though. Did you find that bumping the verbosity causes additional text to show? |
Bumping to detailed didn't change anything in the output of dotnet test -l "trx;verbosity=detailed"
trx:
|
@timheuer got latest from your repo, run ❯ dotnet --version
9.0.100-preview.2.24074.1 |
Hello,
When running
dotnet test
there are a lots of output and the console output is kind of useless du to the noise.Would it be possible to improve the output to get something similar with
jest
for example:The text was updated successfully, but these errors were encountered: