Skip to main content
net8.0net9.0.NETStandard2.0

This package extends Microsoft Testing Platform to provide TRX test reports. Microsoft Testing is a set of platform, framework and protocol intended to make it possible to run any test on any target or device.

Published
Oct 27, 2026
6d ago
Total Downloads
30.4M
30,395,089

Install

dotnet add package Microsoft.Testing.Extensions.TrxReport --version 2.5.2
ProductVersions
.NET
net8.0net9.0
.NET Standard
netstandard2.0

README

Microsoft.Testing.Extensions.TrxReport

Microsoft.Testing.Extensions.TrxReport is an extension for Microsoft.Testing.Platform that generates TRX (Visual Studio Test Results) report files.

Microsoft.Testing.Platform is open source. You can find Microsoft.Testing.Extensions.TrxReport code in the microsoft/testfx GitHub repository.

Install the package

dotnet add package Microsoft.Testing.Extensions.TrxReport

About

This package extends Microsoft.Testing.Platform with:

  • TRX report generation: produces .trx report files compatible with Visual Studio and Azure DevOps
  • Standardized format: TRX is a widely supported XML-based test results format
  • CI integration: TRX files can be published to Azure DevOps, GitHub Actions and other CI systems for rich test result visualization

Usage

Enable TRX report generation via the --report-trx command line option.

On platforms that can launch a test-host process (all except Android, browser, iOS, tvOS, and WASI), TRX uses controller-backed recovery by default: the test host still streams results and generates the report during normal execution, but a surviving controller process can recover completed results into a TRX report if the test host crashes, hangs, or is stopped by --timeout. Android, browser, iOS, tvOS, and WASI cannot launch a test-host process, so TRX automatically falls back to its original in-process implementation there — no controller-backed recovery is attempted, and no configuration is required to get this fallback.

The extra process has a measurable startup cost, which varies by target framework: for a trivial single-test run, launching the controller added no statistically measurable overhead on .NET (differences were within normal process-launch noise) but added roughly 700-800ms on .NET Framework in local measurements. Weigh this against the reliability benefit for your scenario, especially on .NET Framework or in tight inner-loop test runs.

Related packages

Documentation

For this extension, see https://learn.microsoft.com/dotnet/core/testing/microsoft-testing-platform-extensions-test-reports#visual-studio-test-reports-trx.

For comprehensive documentation, see https://aka.ms/testingplatform.

Feedback & contributing

Microsoft.Testing.Platform is an open source project. Provide feedback or report issues in the microsoft/testfx GitHub repository.

Changes from Previous Version

No structural changes between v2.5.1 and v2.5.2.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.