Skip to content

Latest 4.1 previews are not adding exception info for failed tests in TRX (MTP) #7282

Description

Describe the bug

Latest MSTest 4.1 previews are missing Output element under UnitTestResult in TRX files. This is because we read IsTrxEnabled early in the bridge before it has been set, causing the bridge to not add any of the Trx test node properties.

Steps To Reproduce

Write a failed test, run with dotnet run --report-trx.

Expected behavior

Exception message and stack trace are present

Actual behavior

Not present.

Additional context

Regressed in #6872. The regression hasn't shipped in a stable release yet.

Activity

  1. added
    area/mtp
    area/mtp-vstest-bridge
    area/mstest
    on Jan 23, 2026
  2. Youssef1313 commented on Jan 24, 2026

    @Youssef1313
    MemberAuthor

    Fix merged. We only need a test here.

  3. added
    type/test-gap
    on Jan 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area/mstestarea/mtparea/mtp-vstest-bridgetype/test-gap

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions