Skip to content

TRX default output directory changed between MSTest.Sdk 4.2.3 and 4.3.0? #10116

Description

@chvollm

Hi team, I am seeing a behavior change in TRX output location across SDK versions and want to confirm whether this is expected.

Environment:

.NET SDK: 10.0.400-preview.0.26322.102
Runner: Microsoft.Testing.Platform
Command used:
dotnet test -- --report-trx --report-trx-filename test_results.trx

Observed behavior:

With MSTest.Sdk 4.2.3 (MTP 2.2.3): TRX is generated under the build output TestResults folder.
With MSTest.Sdk 4.3.0 (MTP 2.3.1): TRX is generated under a top-level TestResults folder for the project.
Question:

Was the default base directory for TRX output intentionally changed in this version range?
If yes, where is this documented?
What is the recommended way to keep the previous location behavior?
Notes:

I found release notes about report filename improvements (placeholders and path support), but I did not find a clear note explicitly describing a default output directory change.

Metadata

Metadata

Labels

needs/triageNeeds triage by a maintainer.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions