Microsoft.Testing.Platform 2.5.1
Microsoft.Testing.Platform
Microsoft.Testing.Platform is a lightweight and portable alternative to VSTest for running tests in CLI, continuous integration (CI) pipelines, Visual Studio Test Explorer, and Visual Studio Code Test Explorer. Microsoft.Testing.Platform is embedded directly in your test projects and test applications can be run directly.
Microsoft.Testing.Platform is open source. You can find Microsoft.Testing.Platform code in the microsoft/testfx GitHub repository.
To keep test applications lightweight and portable, the core package has no compile-time or runtime dependencies outside the .NET Base Class Library (BCL).
Install the package
dotnet add package Microsoft.Testing.Platform
Usage
Framework authors can create and run a test application directly:
using Microsoft.Testing.Platform.Builder;
using var cancellationTokenSource = new CancellationTokenSource();
var options = new TestApplicationOptions
{
CancellationToken = cancellationTokenSource.Token,
};
ITestApplicationBuilder builder = await TestApplication.CreateBuilderAsync(args, options);
// Register the test framework and extensions with builder.
using ITestApplication app = await builder.BuildAsync();
return await app.RunAsync();
TestApplicationOptions.CancellationToken requests cooperative cancellation while the application is
running. It shares MTP's existing cancellation path with Ctrl+C, timeouts, controller cancellation,
and test framework stop policies. A canceled run completes cleanup and returns the
test-session-aborted exit code (3).
About
This package provides the core platform and the .NET implementation of the testing protocol. It includes:
- Test application host: test projects are built as executables that can be run directly
- Extensibility model: a rich extensibility model allowing test frameworks, tools and extensions to interoperate
- Protocol: the
Microsoft Testing Platform protocolenabling communication between the test host and external consumers (e.g. IDE, CI)
This package is typically not referenced directly. Instead, test framework packages (such as MSTest) reference it automatically.
Related packages
- Microsoft.Testing.Platform.MSBuild: MSBuild integration for
dotnet testand CI pipeline support
Documentation
For this package, see https://learn.microsoft.com/dotnet/core/testing/microsoft-testing-platform-intro.
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.Platform.
| Packages | Downloads |
|---|---|
|
Microsoft.Testing.Extensions.TrxReport.Abstractions
Package Description
|
102 |
|
Microsoft.Testing.Platform.MSBuild
Microsoft Testing is a set of platform, framework and protocol intended to make it possible to run any test on any target or device.
This package provides MSBuild integration of the platform, its extensions and configuration files.
|
100 |
|
xunit.v3.core.mtp-v2
Includes the core library (xunit.v3.core.dll), to be used for writing tests; extensibility authors should include xunit.v3.extensibility.core instead. Includes support for Microsoft.Testing.Platform v2. Supports .NET Framework 4.7.2 or later, and .NET 8 or later.
|
100 |
|
Microsoft.Testing.Extensions.Telemetry
Microsoft Testing is a set of platform, framework and protocol intended to make it possible to run any test on any target or device.
This package provides telemetry for the platform.
|
97 |
|
Microsoft.Testing.Platform.MSBuild
Microsoft Testing is a set of platform, framework and protocol intended to make it possible to run any test on any target or device.
This package provides MSBuild integration of the platform, its extensions and configuration files.
|
64 |
|
Microsoft.Testing.Platform.MSBuild
Microsoft Testing is a set of platform, framework and protocol intended to make it possible to run any test on any target or device.
This package provides MSBuild integration of the platform, its extensions and configuration files.
|
63 |
|
Microsoft.Testing.Platform.MSBuild
Microsoft Testing is a set of platform, framework and protocol intended to make it possible to run any test on any target or device.
This package provides MSBuild integration of the platform, its extensions and configuration files.
|
61 |
|
Microsoft.Testing.Platform.MSBuild
Microsoft Testing is a set of platform, framework and protocol intended to make it possible to run any test on any target or device.
This package provides MSBuild integration of the platform, its extensions and configuration files.
|
59 |
|
Microsoft.Testing.Platform.MSBuild
Microsoft Testing is a set of platform, framework and protocol intended to make it possible to run any test on any target or device.
This package provides MSBuild integration of the platform, its extensions and configuration files.
|
58 |
|
Microsoft.Testing.Platform.MSBuild
Microsoft Testing is a set of platform, framework and protocol intended to make it possible to run any test on any target or device.
This package provides MSBuild integration of the platform, its extensions and configuration files.
|
57 |
|
Microsoft.Testing.Platform.MSBuild
Microsoft Testing is a set of platform, framework and protocol intended to make it possible to run any test on any target or device.
This package provides MSBuild integration of the platform, its extensions and configuration files.
|
56 |
|
Microsoft.Testing.Platform.MSBuild
Microsoft Testing is a set of platform, framework and protocol intended to make it possible to run any test on any target or device.
This package provides MSBuild integration of the platform, its extensions and configuration files.
|
55 |
|
Microsoft.Testing.Extensions.VSTestBridge
Microsoft Testing is a set of platform, framework and protocol intended to make it possible to run any test on any target or device.
This package provides a bridge integration for test adapters wanting to target both VSTest and Microsoft.Testing.Platform test platforms.
|
55 |
|
Microsoft.Testing.Platform.MSBuild
Microsoft Testing is a set of platform, framework and protocol intended to make it possible to run any test on any target or device.
This package provides MSBuild integration of the platform, its extensions and configuration files.
|
54 |
See the release notes at https://github.com/microsoft/testfx/blob/main/docs/Changelog-Platform.md#2.5.1.
.NET 8.0
- No dependencies.
.NET 9.0
- No dependencies.
.NET Standard 2.0
- No dependencies.
| Version | Downloads | Last updated |
|---|---|---|
| 2.5.1 | 10 | 10/07/2026 |
| 2.5.0 | 8 | 10/07/2026 |
| 2.4.1 | 17 | 09/18/2026 |
| 2.4.0 | 16 | 09/04/2026 |
| 2.3.3 | 103 | 07/30/2026 |
| 2.3.2 | 25 | 07/15/2026 |
| 2.3.1 | 21 | 07/09/2026 |
| 2.3.0 | 25 | 07/08/2026 |
| 2.2.3 | 34 | 05/17/2026 |
| 2.2.2 | 35 | 04/30/2026 |
| 2.2.1 | 42 | 04/09/2026 |
| 2.1.0 | 49 | 02/06/2026 |
| 2.0.2 | 38 | 12/14/2025 |
| 2.0.1 | 41 | 12/12/2025 |
| 2.0.0 | 5 | 10/02/2026 |
| 2.0.0-preview.25480.4 | 42 | 12/18/2025 |
| 2.0.0-preview.25465.3 | 34 | 12/19/2025 |
| 2.0.0-preview.25454.2 | 34 | 12/21/2025 |
| 2.0.0-preview.25452.10 | 39 | 12/17/2025 |
| 2.0.0-preview.25415.9 | 39 | 12/19/2025 |
| 2.0.0-preview.25411.5 | 33 | 12/19/2025 |
| 2.0.0-preview.25372.6 | 37 | 12/21/2025 |
| 2.0.0-preview.25358.7 | 40 | 12/14/2025 |
| 1.9.1 | 50 | 01/02/2026 |
| 1.9.0 | 51 | 01/04/2026 |
| 1.8.5 | 40 | 12/16/2025 |
| 1.8.4 | 4 | 10/07/2026 |
| 1.8.3 | 40 | 12/17/2025 |
| 1.8.2 | 38 | 12/19/2025 |
| 1.8.1 | 34 | 01/09/2026 |
| 1.8.0 | 41 | 12/20/2025 |
| 1.7.3 | 34 | 12/15/2025 |
| 1.7.2 | 39 | 12/14/2025 |
| 1.7.1 | 43 | 01/05/2026 |
| 1.7.0 | 37 | 12/22/2025 |
| 1.7.0-preview.25167.10 | 32 | 12/14/2025 |
| 1.6.3 | 38 | 12/18/2025 |
| 1.6.2 | 39 | 12/14/2025 |
| 1.6.1 | 32 | 12/14/2025 |
| 1.6.0 | 36 | 12/14/2025 |
| 1.5.3 | 33 | 12/24/2025 |
| 1.5.2 | 44 | 12/14/2025 |
| 1.5.1 | 39 | 12/27/2025 |
| 1.5.0 | 37 | 12/24/2025 |
| 1.4.3 | 41 | 01/16/2026 |
| 1.4.2 | 49 | 12/14/2025 |
| 1.4.1 | 43 | 12/14/2025 |
| 1.4.0 | 32 | 12/11/2025 |
| 1.4.0-preview.24422.11 | 33 | 12/14/2025 |
| 1.4.0-preview.24415.5 | 42 | 12/14/2025 |
| 1.3.2 | 35 | 12/14/2025 |
| 1.3.1 | 36 | 01/01/2026 |
| 1.3.0-preview.24325.7 | 40 | 12/11/2025 |
| 1.2.1 | 31 | 12/14/2025 |
| 1.2.0 | 36 | 12/26/2025 |
| 1.1.0 | 38 | 12/13/2025 |
| 1.1.0-preview.24163.4 | 48 | 12/12/2025 |
| 1.0.2 | 41 | 12/13/2025 |
| 1.0.1 | 35 | 12/29/2025 |
| 1.0.0 | 32 | 12/20/2025 |
| 1.0.0-preview.24068.6 | 34 | 12/14/2025 |
| 1.0.0-preview.23622.9 | 2 | 10/12/2026 |
| 1.0.0-preview.23621.14 | 28 | 12/14/2025 |