Skip to content

TRX file pattern does not match MTP output in pipeline workflows #192

@mwadams

Description

@mwadams

Problem

The scripted-build-matrix-pipeline.yml and scripted-build-pipeline.yml workflows use trx_files: "**/test-results_*.trx" to publish test results. This pattern requires an underscore after test-results, but Microsoft Testing Platform (MTP) via ZeroFailed produces test-results.trx (no underscore), so MTP test results are never published.

Already Fixed In

actions/run-build-process/action.yml was updated to use the unified files parameter with broader globs (**/test-results*.trx) that match both VSTest and MTP output. This fix was not propagated to the two pipeline workflow files.

Fix

Replace per-type parameters (trx_files, nunit_files, junit_files) with the unified files parameter using the same patterns as run-build-process/action.yml.

Affects 4 occurrences across 2 files:

  • scripted-build-matrix-pipeline.yml (Linux + Windows publish steps)
  • scripted-build-pipeline.yml (Linux + Windows publish steps)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions