Skip to content

dotnet test MTP: Disable ANSI output in LLM environments - #53654

Merged
Youssef1313 merged 2 commits into
release/10.0.3xxfrom
dev/ygerges/disable-ansi-llm
Apr 1, 2026
Merged

dotnet test MTP: Disable ANSI output in LLM environments#53654
Youssef1313 merged 2 commits into
release/10.0.3xxfrom
dev/ygerges/disable-ansi-llm

Conversation

@Youssef1313

Copy link
Copy Markdown
Member

MTP side change: microsoft/testfx#7649

CopilotAI review requested due to automatic review settings April 1, 2026 11:28

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates dotnet test (Microsoft Testing Platform path) to automatically prefer plain, non-ANSI terminal output when running under detected LLM/agentic environments, improving machine-parsability of test output.

Changes:

  • Detect LLM environments via LLMEnvironmentDetectorForTelemetry and force AnsiMode.NoAnsi.
  • Add a telemetry namespace import to support the new detection logic.

Comment threadsrc/Cli/dotnet/Commands/Test/MTP/MicrosoftTestingPlatformTestCommand.cs Outdated
@Youssef1313
Youssef1313 enabled auto-merge (squash) April 1, 2026 12:09
@Youssef1313
Youssef1313 merged commit 8de657c into release/10.0.3xxApr 1, 2026
28 checks passed
@Youssef1313
Youssef1313 deleted the dev/ygerges/disable-ansi-llm branch April 1, 2026 12:34
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@Youssef1313@Evangelink