Skip to content

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

License

Notifications You must be signed in to change notification settings

microsoft/testfx

Folders and files

NameName
Last commit message
Last commit date
Dec 3, 2024
Nov 26, 2024
Dec 3, 2024
Jan 29, 2025
Dec 16, 2024
Jan 16, 2025
Jan 27, 2025
Dec 5, 2024
Aug 30, 2022
Dec 11, 2023
May 23, 2024
May 22, 2024
Dec 5, 2023
Feb 6, 2024
Apr 19, 2021
Apr 14, 2024
Nov 26, 2024
Dec 10, 2024
Jan 27, 2025
Jan 2, 2023
Jan 13, 2025
Jul 8, 2024
Jan 29, 2025
Sep 3, 2024
May 19, 2022
Dec 18, 2023
Feb 6, 2024
Jan 13, 2025
Sep 10, 2024
Dec 16, 2024
Jan 15, 2025
Nov 27, 2023
Dec 5, 2024
Feb 6, 2024
Feb 6, 2024
Feb 6, 2024
Feb 6, 2024

Repository files navigation

Microsoft Test Framework

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

MSTest, Microsoft Testing Framework, is a unit 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.

Name Description Stable version Preview version Dogfood version
MSTest This package is a meta package that simplifies referencing all recommended MSTest packages. # # Azure Artifacts
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. # # Azure Artifacts
MSTest.TestAdapter This package includes the adapter logic to discover and run tests. For access to the testing framework, install the MSTest.TestFramework package. # # Azure Artifacts
MSTest.Analyzers This package includes code analyzers and code fixes for MSTest. # # Azure Artifacts

License

MSTest is licensed under the MIT license.

The LICENSE and ThirdPartyNotices in any downloaded archives are authoritative.