Skip to content

MTP-generated .trx file is missing #6590

Closed as not planned
Closed as not planned

Description

@stan-sz

The same test project when invoked with vstest and MTP may produce slightly different .trx file, namely the former contains the RunInfos with warnings, while the same section will be missing in MTP-generated .trx.

tail of vstest .trx

<ResultSummary outcome="Completed">
    <Counters total="38" executed="38" passed="38" failed="0" error="0" timeout="0" aborted="0" inconclusive="0" passedButRunAborted="0" notRunnable="0" notExecuted="0" disconnected="0" warning="0" completed="0" inProgress="0" pending="0" />
    <RunInfos>
      <RunInfo computerName="foo" outcome="Warning" timestamp="2025-09-04T09:18:01.1379610+02:00">
        <Text>Test Run deployment issue: The assembly or module 'Microsoft...

tail of mtp .trx

  <ResultSummary outcome="Completed">
    <Counters total="38" executed="38" passed="38" failed="0" error="0" timeout="0" aborted="0" inconclusive="0" passedButRunAborted="0" notRunnable="0" notExecuted="0" disconnected="0" warning="0" completed="0" inProgress="0" pending="0" />
  </ResultSummary>

Activity

  1. Youssef1313 commented on Sep 23, 2025

    @Youssef1313
    Member

    stan-sz The final exit code of the test app in this case was zero?
    In MTP it seems like we only ever write RunInfos element when the test app fails (which is probably the bug here)

  2. Youssef1313 commented on Sep 23, 2025

    @Youssef1313
    Member

    If you add some failing test, do you see the element written correctly?

  3. added
    area/mtp
    area/trx
    and removed
    needs/triage
    on Sep 23, 2025
  4. Youssef1313 commented on Sep 23, 2025

    @Youssef1313
    Member

    Today we don't actually write anything passed to logging or output in TRX. So even when the RunInfos element is present (when exit code isn't zero), we don't add any warnings "logged" or "printed" by test frameworks

  5. added
    needs/design
    on Sep 23, 2025
  6. stan-sz commented on Sep 24, 2025

    @stan-sz
    ContributorAuthor

    For the MTP scenario, the same warnings are present in the console. They just don't end up in the .trx.

  7. Evangelink commented on Nov 5, 2026

    @Evangelink
    Member

    There was no other request and stan-sz confirmed this is not important for them so closing as won't fix. We can revisit later based on feedback.

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/trxneeds/design

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions