https://github.com/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.
https://github.com/microsoft/testfx
dotnet microsoft microsoft-testing-platform mstest mstestv2 mstestv3 mtp tdd test test-framework test-runner testing testing-tools unittest visual-studio
Last synced: about 6 hours ago
JSON representation
This repository holds the source code of Microsoft.Testing.Platform (MTP), a lightweight alternative to VSTest, as well as MSTest adapter and framework.
- Host: GitHub
- URL: https://github.com/microsoft/testfx
- Owner: microsoft
- License: mit
- Created: 2016-08-06T12:03:38.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2025-04-10T05:51:35.000Z (5 days ago)
- Last Synced: 2025-04-10T06:25:12.698Z (5 days ago)
- Topics: dotnet, microsoft, microsoft-testing-platform, mstest, mstestv2, mstestv3, mtp, tdd, test, test-framework, test-runner, testing, testing-tools, unittest, visual-studio
- Language: C#
- Homepage:
- Size: 39.7 MB
- Stars: 860
- Watchers: 63
- Forks: 271
- Open Issues: 284
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
- RSCG_Examples - https://github.com/microsoft/testfx
- awesome-fsharp - MSTest
README
# Microsoft.Testing.Platform and Microsoft Test Framework (MSTest)
[](https://GitHub.com/microsoft/testfx/releases/)
[](https://github.com/microsoft/testfx)
[](https://GitHub.com/microsoft/testfx/issues?q=is%3Aissue+is%3Aopened)
[](https://GitHub.com/microsoft/testfx/issues?q=is%3Aissue+is%3Aclosed)
[](https://GitHub.com/microsoft/testfx/pulls?q=is%3Aissue+is%3Aopened)
[](https://github.com/microsoft/testfx/pulls?q=is%3Apr+is%3Aclosed+is%3Amerged)
[](https://GitHub.com/microsoft/testfx/graphs/contributors/)
[](.)
[](https://dev.azure.com/dnceng-public/public/_build/latest?definitionId=209&branchName=main)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](https://aka.ms/mtp-overview).
MSTest, Microsoft Testing 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](./CONTRIBUTING.md) guides how to best contribute
- [Dev Guide](./docs/dev-guide.md) explains how to build and test
- [Documentation](docs/README.md) 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.
| Name | Description | Stable version | Preview version | Dogfood version |
|--------------|---------|:--------------:|:---------------:|:---------------:|
| MSTest | This package is a meta package that simplifies referencing all recommended MSTest packages. | [](http://www.nuget.org/packages/MSTest/) | [](http://www.nuget.org/packages/MSTest/) | [Azure Artifacts](https://dnceng.visualstudio.com/public/_artifacts/feed/test-tools/NuGet/MSTest/versions) |
| MSTest.TestFramework | This package includes the libraries for writing tests with MSTest. To ensure the discovery and execution of your tests, install the `MSTest.TestAdapter` package. | [](http://www.nuget.org/packages/MSTest.TestFramework/) | [](http://www.nuget.org/packages/MSTest.TestFramework/) | [Azure Artifacts](https://dnceng.visualstudio.com/public/_artifacts/feed/test-tools/NuGet/MSTest.TestFramework/versions) |
| MSTest.TestAdapter | This package includes the adapter logic to discover and run tests. For access to the testing framework, install the `MSTest.TestFramework` package. | [](http://www.nuget.org/packages/MSTest.TestAdapter/) | [](http://www.nuget.org/packages/MSTest.TestAdapter/) | [Azure Artifacts](https://dnceng.visualstudio.com/public/_artifacts/feed/test-tools/NuGet/MSTest.TestAdapter/versions) |
| MSTest.Analyzers | This package includes code analyzers and code fixes for MSTest. | [](http://www.nuget.org/packages/MSTest.Analyzers/) | [](http://www.nuget.org/packages/MSTest.Analyzers/) | [Azure Artifacts](https://dnceng.visualstudio.com/public/_artifacts/feed/test-tools/NuGet/MSTest.Analyzers/versions) |
| MSTest.Sdk | This is a [MSBuild Project SDK](https://learn.microsoft.com/visualstudio/msbuild/how-to-use-project-sdk) package that greatly simplifies a test project structure. See [MSTest SDK Overview](https://aka.ms/mstest/sdk) for details. | [](http://www.nuget.org/packages/MSTest.Sdk/) | [](http://www.nuget.org/packages/MSTest.Sdk/) | [Azure Artifacts](https://dnceng.visualstudio.com/public/_artifacts/feed/test-tools/NuGet/MSTest.Sdk/versions) |## License
MSTest is licensed under the [MIT license](LICENSE).
The LICENSE and ThirdPartyNotices in any downloaded archives are authoritative.