Skip to content

MTPv2: clean output in GitHub Actions? #7056

Closed

Description

When using MTPv2 in GitHub Actions, the output contains a lot of garbage that makes it difficult to read the log. For example, a single assembly occurs multiple times:

Image

Compare that with VSTest, which just logs a clear single line:

Image

Is there a way to produce a clean output in the log on GitHub Actions? Such as per assembly/framework:

  • Number of tests passed/failed/skipped
  • Each failed test with its name and stack trace

Activity

  1. Youssef1313 commented on Dec 5, 2025

    @Youssef1313
    Member

    Can you try passing --no-progress?

    Jakub Jareš (@nohwnd) I strongly think that when the terminal isn't capable of updating the progress in-place, we should really disable progress by default. I have been adding --no-progress almost everywhere in CI and I think this should be the default.

  2. added
    area/mtp
    area/terminal-reporter
    and removed
    needs/triage
    on Dec 5, 2025
  3. nohwnd commented on Dec 5, 2025

    @nohwnd
    Member

    The progress is reported every 3 seconds for every dll that is currently running. When the UI is not ansi capable this is the only way to report. I am not opposed to disabling the output in non-interactive scenarios. But then you also don't get any sense of what was progress.

  4. bart-vmware commented on Dec 5, 2025

    @bart-vmware
    Author

    Using --no-progress is more readable, but it doesn't show the number of passed/failed/skipped tests per assembly.

  5. Youssef1313 commented on Dec 5, 2025

    @Youssef1313
    Member

    I am not opposed to disabling the output in non-interactive scenarios

    Good. I think that's best. Please when you do so, make sure to fix that both on SDK and MTP (so we have consistency between running executable directly and running via dotnet test, and include it in release/10.0.2xx of SDK if possible)

    But then you also don't get any sense of what was progress.

    Maybe we can go with --no-progress <optional-bool> and if user wants progress they specify --no-progress false (double negation which is annoying). Alternatively, we can do --force-progress (and disallow specifying both --force-progress and --no-progress).

    Using --no-progress is more readable, but it doesn't show the number of passed/failed/skipped tests per assembly.

    Jakub Jareš (@nohwnd) When running on solution, do we show summary for each assembly? or only whole test run summary? Can we do some improvement here?

  6. nohwnd commented on Dec 8, 2025

    @nohwnd
    Member

    Yeah enabling progress is awkward. Imho there should be --ansi and --progress parameter that takes auto, true, false (and optionally 1,0, on, off like terminal logger parameter).

    #5081 this is already requested here.

    Currently none of the assembly summaries show the final number of tests that passed / failed / skipped / retried, it shows just final result of the assembly.

    Image

    Adding counts to them should be easy, as we have already both the data and the way to render them.

    Image

    However to me this seems a bit confusing, and we should probably color the outputs only to highlight with color to relevant number (like we do with the results in summary) = any failed, only red is highlighted, all passed only green is highlighted, all skipped only yellow is highlighted.

  7. Evangelink commented on Dec 10, 2025

    @Evangelink
    Member

    I love all your points here Jakub Jareš (@nohwnd) so +1000% for me!

  8. nohwnd commented on Dec 11, 2025

    @nohwnd
    Member

    @Copilot can you bring my design to reality? All the methods are already there. Change the coloring to be only highlighting the important status, as called out here:

    color the outputs only to highlight with color to relevant number (like we do with the results in summary) = any failed, only red is highlighted, all passed only green is highlighted, all skipped only yellow is highlighted.

  9. nohwnd commented on Dec 11, 2025

    @nohwnd
    Member

    actually, wrong repo. the reporter here, does not report on assemblies since there is just 1.

  10. Youssef1313 commented on Jan 20, 2026

    @Youssef1313
    Member

    We made changes to disable progress by default when the terminal isn't capable of updating progress in-place. When using dotnet run, the fix will be available in MTP 2.1 (#7248). When using dotnet test, it will be available .NET 10 SDK 10.0.2xx (dotnet/sdk#52550).

    For showing per-assembly summary under dotnet test, this will be work on dotnet/sdk and is tracked by dotnet/sdk#52128.

    Hence, I'm closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area/mtparea/terminal-reporter

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions