Microsoft.Testing.Extensions.TrxReport 2.4.1

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+
19
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+
20
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+
19
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+
21
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+
22
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+
23
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+
24
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+
25
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+
26
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+
27

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

Version Downloads Last updated
2.4.1 1 09/26/2026
2.4.0 1 09/06/2026
2.3.3 3 08/15/2026
2.3.2 6 07/17/2026
2.3.1 6 07/20/2026
2.3.0 6 07/18/2026
2.2.3 6 05/20/2026
2.2.2 8 05/05/2026
2.2.1 9 04/12/2026
2.1.0 10 02/11/2026
2.0.2 15 11/19/2025
2.0.1 17 10/15/2025
2.0.0 18 10/08/2025
2.0.0-preview.25480.4 15 10/07/2025
2.0.0-preview.25465.3 16 09/23/2025
2.0.0-preview.25454.2 13 09/07/2025
2.0.0-preview.25452.10 14 09/05/2025
2.0.0-preview.25415.9 15 08/17/2025
2.0.0-preview.25411.5 16 08/18/2025
2.0.0-preview.25372.6 17 08/09/2025
2.0.0-preview.25358.7 16 07/16/2025
1.9.1 16 11/20/2025
1.9.0 19 10/06/2025
1.8.5 16 10/06/2025
1.8.4 17 09/13/2025
1.8.3 18 09/06/2025
1.8.2 20 08/14/2025
1.8.1 20 08/14/2025
1.8.0 20 08/14/2025
1.7.3 22 06/27/2025
1.7.2 24 06/17/2025
1.7.1 21 06/17/2025
1.7.0 24 06/13/2025
1.7.0-preview.25167.10 16 04/19/2025
1.6.3 18 04/20/2025
1.6.2 20 04/20/2025
1.6.1 23 04/20/2025
1.6.0 19 04/20/2025
1.5.3 23 04/20/2025
1.5.2 21 04/20/2025
1.5.1 21 04/20/2025
1.5.0 20 04/20/2025
1.4.3 20 04/20/2025
1.4.2 20 04/20/2025
1.4.1 22 04/20/2025
1.4.0 21 04/20/2025
1.4.0-preview.24422.11 17 04/20/2025
1.4.0-preview.24415.5 19 04/20/2025
1.3.2 21 04/20/2025
1.3.1 19 04/20/2025
1.3.0-preview.24325.7 18 04/19/2025
1.2.1 23 04/20/2025
1.2.0 22 04/19/2025
1.1.0 18 04/19/2025
1.1.0-preview.24163.4 18 04/19/2025
1.0.2 20 04/19/2025
1.0.1 20 04/19/2025
1.0.0 21 04/19/2025
1.0.0-preview.24068.6 26 04/19/2025