Skip to content

Consider: Disable MTP's own TerminalTestReporter when running under server mode (pipe specifically maybe?) #7161

Description

When running with dotnet test using the pipe protocol, SDK's TerminalTestReporter is responsible for reporting the test results, progress, etc...

Doing that work in the test app itself might lead to:

  1. Work being thrown away.
  2. Unnecessary console writes.
  3. Duplicate information printed by TerminalTestReporter when we attempt to print the test app process standard output/err.

This is also quite related to dotnet/sdk#51615.

Activity

  1. Evangelink commented on Jan 1, 2026

    @Evangelink
    Member

    If I recall correctly this is the behavior in place for the server mode (VS)

  2. nohwnd commented on Jan 5, 2026

    @nohwnd
    Member

    https://github.com/microsoft/testfx/blob/main/src/Platform/Microsoft.Testing.Platform/OutputDevice/TerminalOutputDevice.cs#L348

    It prints at least here, if all of that info is forwarded via server then there should be no point for activating terminal reporter. Output of the child process should still be collected though, because binaries can write to the native stream so C# won't see it and won't forward it (e.g. TAEF does that).

  3. Youssef1313 commented on Jan 8, 2026

    @Youssef1313
    MemberAuthor

    If I recall correctly this is the behavior in place for the server mode (VS)

    Amaury Levé (@Evangelink) I see nowhere we do this.

  4. Evangelink commented on Jan 8, 2026

    @Evangelink
    Member

    I got confused by this part of the code: https://github.com/microsoft/testfx/blob/main/src/Platform/Microsoft.Testing.Platform/OutputDevice/OutputDeviceManager.cs#L37-L43

    I thought that in server mode we were only using a different output not just writing to both.

  5. added
    area/mtp
    area/terminal-reporter
    on Jan 12, 2026
  6. added a commit that references this issue on Jun 15, 2026
    d6701cb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/mtparea/terminal-reporter

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions