Microsoft.Testing.Extensions.TrxReport 2.4.0

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.

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.

Showing the top 20 packages that depend on Microsoft.Testing.Extensions.TrxReport.

Packages Downloads
MSTest
MSTest is Microsoft supported Test Framework. This package is a meta package to simplify test projects. It includes MSTest.TestFramework and MSTest.TestAdapter. Supported platforms: - .NET 4.6.2+ - .NET 8.0+ - .NET 8.0 Windows.18362+ (WinUI) - UWP 10.0.16299 - UWP 10.0.17763 with .NET 9+
15
MSTest
MSTest is Microsoft supported Test Framework. This package is a meta package to simplify test projects. It includes MSTest.TestFramework and MSTest.TestAdapter. Supported platforms: - .NET 4.6.2+ - .NET 8.0+ - .NET 8.0 Windows.18362+ (WinUI) - UWP 10.0.16299 - UWP 10.0.17763 with .NET 9+
16
MSTest
MSTest is Microsoft supported Test Framework. This package is a meta package to simplify test projects. It includes MSTest.TestFramework and MSTest.TestAdapter. Supported platforms: - .NET 4.6.2+ - .NET 8.0+ - .NET 8.0 Windows.18362+ (WinUI) - UWP 10.0.16299 - UWP 10.0.17763 with .NET 9+
17
MSTest
MSTest is Microsoft supported Test Framework. This package is a meta package to simplify test projects. It includes MSTest.TestFramework and MSTest.TestAdapter. Supported platforms: - .NET 4.6.2+ - .NET 8.0+ - .NET 8.0 Windows.18362+ (WinUI) - UWP 10.0.16299 - UWP 10.0.17763 with .NET 9+
18
MSTest
MSTest is Microsoft supported Test Framework. This package is a meta package to simplify test projects. It includes MSTest.TestFramework and MSTest.TestAdapter. Supported platforms: - .NET 4.6.2+ - .NET Core 3.1+ - .NET 6.0+ - .NET 6.0 Windows.18362+ - UWP 10.0.16299 - UWP 10.0.17763 with .NET 9+
15
MSTest
MSTest is Microsoft supported Test Framework. This package is a meta package to simplify test projects. It includes MSTest.TestFramework and MSTest.TestAdapter. Supported platforms: - .NET 4.6.2+ - .NET Core 3.1+ - .NET 6.0+ - .NET 6.0 Windows.18362+ - UWP 10.0.16299 - UWP 10.0.17763 with .NET 9+
16
MSTest
MSTest is Microsoft supported Test Framework. This package is a meta package to simplify test projects. It includes MSTest.TestFramework and MSTest.TestAdapter. Supported platforms: - .NET 4.6.2+ - .NET Core 3.1+ - .NET 6.0+ - .NET 6.0 Windows.18362+ - UWP 10.0.16299 - UWP 10.0.17763 with .NET 9+
17

See the release notes at https://github.com/microsoft/testfx/blob/main/docs/Changelog-Platform.md#2.4.0.

Version Downloads Last updated
2.4.0 4 09/04/2026
2.3.3 20 07/30/2026
2.3.2 20 07/25/2026
2.3.1 18 07/26/2026
2.3.0 22 07/26/2026
2.2.3 20 07/26/2026
2.2.2 21 07/26/2026
2.2.1 21 07/26/2026
2.1.0 18 07/26/2026
2.0.2 24 07/26/2026
2.0.1 20 07/26/2026
2.0.0 22 07/26/2026
2.0.0-preview.25480.4 21 07/26/2026
2.0.0-preview.25465.3 21 07/26/2026
2.0.0-preview.25454.2 21 07/26/2026
2.0.0-preview.25452.10 18 07/26/2026
2.0.0-preview.25415.9 19 07/26/2026
2.0.0-preview.25411.5 21 07/26/2026
2.0.0-preview.25372.6 20 07/26/2026
2.0.0-preview.25358.7 18 07/26/2026
1.9.1 22 07/26/2026
1.9.0 22 07/26/2026
1.8.5 22 07/26/2026
1.8.4 22 07/26/2026
1.8.3 23 07/26/2026
1.8.2 21 07/26/2026
1.8.1 19 07/26/2026
1.8.0 20 07/26/2026
1.7.3 20 07/26/2026
1.7.2 19 07/26/2026
1.7.1 21 07/26/2026
1.7.0 20 07/26/2026
1.7.0-preview.25167.10 21 07/26/2026
1.6.3 22 07/26/2026
1.6.2 19 07/26/2026
1.6.1 18 07/26/2026
1.6.0 20 07/26/2026
1.5.3 23 07/26/2026
1.5.2 23 07/26/2026
1.5.1 17 07/26/2026
1.5.0 19 07/26/2026
1.4.3 22 07/26/2026
1.4.2 19 07/26/2026
1.4.1 18 07/26/2026
1.4.0 19 07/26/2026
1.4.0-preview.24422.11 21 07/26/2026
1.4.0-preview.24415.5 19 07/26/2026
1.3.2 19 07/26/2026
1.3.1 16 07/26/2026
1.3.0-preview.24325.7 19 07/26/2026
1.2.1 20 07/26/2026
1.2.0 19 07/26/2026
1.1.0 19 07/26/2026
1.1.0-preview.24163.4 22 07/26/2026
1.0.2 20 07/26/2026
1.0.1 21 07/26/2026
1.0.0 24 07/26/2026
1.0.0-preview.24068.6 21 07/26/2026