Skip to content

Add testConfig.json that sets captureTrace=false#55290

Open
tmat wants to merge 1 commit into
dotnet:mainfrom
tmat:DisableCaptureTestOutput
Open

Add testConfig.json that sets captureTrace=false#55290
tmat wants to merge 1 commit into
dotnet:mainfrom
tmat:DisableCaptureTestOutput

Conversation

@tmat

@tmat tmat commented Jul 15, 2026

Copy link
Copy Markdown
Member

Makes it easier to diagnose hanging tests.

Copilot AI review requested due to automatic review settings July 15, 2026 00:04
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
2 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI 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

This PR introduces a shared Microsoft.Testing.Platform testconfig.json for the repo’s MSTest.Sdk-based test projects, aimed at improving hang/long-running test diagnosis by disabling trace/console output capture so output streams continuously.

Changes:

  • Add test/testconfig.json configuring MSTest output with "captureTrace": false.
  • Update test/Directory.Build.targets to copy that config into each MSTest.Sdk project’s output as $(AssemblyName).testconfig.json.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
test/testconfig.json New shared Microsoft.Testing.Platform config disabling MSTest trace capture.
test/Directory.Build.targets Copies the shared config into MSTest.Sdk project outputs so it’s picked up at test runtime.

Comment thread test/Directory.Build.targets
Comment thread test/Directory.Build.targets
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

Successfully merging this pull request may close these issues.

2 participants