microsoft/testfx

This repository holds the source code of Microsoft.Testing.Platform (MTP), a lightweight alternative to VSTest, as well as MSTest adapter and framework.

C#

1,049

8,556 commits

updated Oct 12, 2026

See the code

README

Microsoft.Testing.Platform and Microsoft Test Framework (MSTest)

GitHub release GitHub repo size GitHub issues-opened GitHub issues-closed GitHub pulls-opened GitHub pulls-merged GitHub contributors Commit Activity Build Status

This repository is the home for Microsoft.Testing.Platform and extensions, as well as MSTest.

Microsoft.Testing.Platform is a lightweight alternative to VSTest. For more information, see Microsoft.Testing.Platform overview.

MSTest, Microsoft Test Framework, is a testing framework for .NET applications. It allows you to write tests, use Test Explorer, create test suites, and apply the red, green, and refactor patterns to write code.

This is a fully supported, open source, and cross-platform test framework with which to write tests targeting .NET Framework, .NET Core, .NET, UWP, and WinUI on Windows, Linux, and Mac.

How can I contribute?

We welcome any kind of contribution!

  • Contributing guides how to best contribute
  • Dev Guide explains how to build and test
  • Documentation contains information about the history, context, and supported or unsupported features. It also gathers the various official documentation pages on learn.microsoft.com about MSTest.

How to consume MSTest?

MSTest is shipped as NuGet packages that can be added to your projects. The following table lists all available packages.

NameDescriptionStable versionPreview versionDogfood version
MSTestThis package is a meta package that simplifies referencing all recommended MSTest packages.##Azure Artifacts
MSTest.TestFrameworkThis package includes the libraries for writing tests with MSTest. To ensure the discovery and execution of your tests, install the MSTest.TestAdapter package.##Azure Artifacts
MSTest.TestAdapterThis package includes the adapter logic to discover and run tests. For access to the testing framework, install the MSTest.TestFramework package.##Azure Artifacts
MSTest.AnalyzersThis package includes code analyzers and code fixes for MSTest.##Azure Artifacts
MSTest.SdkThis is a MSBuild Project SDK package that greatly simplifies a test project structure. See MSTest SDK Overview for details.##Azure Artifacts

License

MSTest is licensed under the MIT license.

The LICENSE and ThirdPartyNotices in any downloaded archives are authoritative.

dotnet
microsoft
microsoft-testing-platform
mstest
mstestv2
mstestv3
mstestv4
mtp
tdd
test
test-framework
testing
testing-tools
test-runner
unittest
visual-studio

microsoft/testfx

This repository holds the source code of Microsoft.Testing.Platform (MTP), a lightweight alternative to VSTest, as well as MSTest adapter and framework.

C#

1,049

8,556 commits

updated Oct 12, 2026

See the code

README

Microsoft.Testing.Platform and Microsoft Test Framework (MSTest)

GitHub release GitHub repo size GitHub issues-opened GitHub issues-closed GitHub pulls-opened GitHub pulls-merged GitHub contributors Commit Activity Build Status

This repository is the home for Microsoft.Testing.Platform and extensions, as well as MSTest.

Microsoft.Testing.Platform is a lightweight alternative to VSTest. For more information, see Microsoft.Testing.Platform overview.

MSTest, Microsoft Test Framework, is a testing framework for .NET applications. It allows you to write tests, use Test Explorer, create test suites, and apply the red, green, and refactor patterns to write code.

This is a fully supported, open source, and cross-platform test framework with which to write tests targeting .NET Framework, .NET Core, .NET, UWP, and WinUI on Windows, Linux, and Mac.

How can I contribute?

We welcome any kind of contribution!

  • Contributing guides how to best contribute
  • Dev Guide explains how to build and test
  • Documentation contains information about the history, context, and supported or unsupported features. It also gathers the various official documentation pages on learn.microsoft.com about MSTest.

How to consume MSTest?

MSTest is shipped as NuGet packages that can be added to your projects. The following table lists all available packages.

NameDescriptionStable versionPreview versionDogfood version
MSTestThis package is a meta package that simplifies referencing all recommended MSTest packages.##Azure Artifacts
MSTest.TestFrameworkThis package includes the libraries for writing tests with MSTest. To ensure the discovery and execution of your tests, install the MSTest.TestAdapter package.##Azure Artifacts
MSTest.TestAdapterThis package includes the adapter logic to discover and run tests. For access to the testing framework, install the MSTest.TestFramework package.##Azure Artifacts
MSTest.AnalyzersThis package includes code analyzers and code fixes for MSTest.##Azure Artifacts
MSTest.SdkThis is a MSBuild Project SDK package that greatly simplifies a test project structure. See MSTest SDK Overview for details.##Azure Artifacts

License

MSTest is licensed under the MIT license.

The LICENSE and ThirdPartyNotices in any downloaded archives are authoritative.

dotnet
microsoft
microsoft-testing-platform
mstest
mstestv2
mstestv3
mstestv4
mtp
tdd
test
test-framework
testing
testing-tools
test-runner
unittest
visual-studio

Project health

Overall

7.0/10

Maintained

10/10

Code review

10/10
OpenSSF Scorecard

Significant stargazers

Cédric Luthi

1,184 followers · starred Sep 2024

Felix-Ayush

655 followers · starred Aug 2026

Drew Noakes

604 followers · starred Dec 2025

Max Schmitt

2,116 followers · starred Sep 2022