MSTest framework and adapter
Перейти к файлу
github-actions[bot] d6fc6d663a
Merge pull request #2636 from microsoft/locfiles/6c9331c8-a6a4-457a-bada-0b8e6d7902b7
Localized file check-in by OneLocBuild Task: Build definition ID 1218: Build ID 2417867
2024-04-02 09:35:26 +02:00
.config 1es PT baseline (#2540) 2024-03-11 11:17:46 +01:00
.github Revert change to bot for needs triage 2024-02-26 09:03:57 +01:00
docs Drop local analyzer docs (#2543) 2024-03-11 14:26:09 +01:00
eng [main] Update dependencies from devdiv/DevDiv/vs-code-coverage, dotnet/arcade, microsoft/testanywhere (#2635) 2024-03-29 09:17:08 +01:00
samples Update NativeAOT runner example (#2634) 2024-03-28 09:32:34 +01:00
src Localized file check-in by OneLocBuild Task: Build definition ID 1218: Build ID 2417867 2024-03-29 01:33:07 -07:00
test Init and cleanup timeout (#2570) 2024-03-27 08:07:40 +01:00
.editorconfig Build all src in Linux (#1920) 2023-12-11 20:55:26 +01:00
.git-blame-ignore-revs
.gitattributes Build all src in Linux (#1920) 2023-12-11 20:55:26 +01:00
.gitignore Update SDK after the follow-up (#2341) 2024-02-15 09:22:39 +01:00
.markdownlint.json
.markdownlintignore Add analyzers (#1870) 2023-12-05 11:26:55 +01:00
Build.cmd Improve user experience of restoring/building/testing (#2261) 2024-02-06 17:37:04 +01:00
CODE_OF_CONDUCT.md
CONTRIBUTING.md
Directory.Build.Local.props Downgrade infra to net8 (#2257) 2024-02-06 12:22:48 +01:00
Directory.Build.Local.targets [main] Update dependencies from devdiv/DevDiv/vs-code-coverage (#2120) 2024-01-18 14:06:18 +01:00
Directory.Build.props Improve automatic versioning (#2496) 2024-03-01 19:57:17 +01:00
Directory.Build.targets
LICENSE
NuGet.config
README.md Rework guides 2024-02-07 22:55:12 +01:00
SECURITY.md
THIRD-PARTY-NOTICES.TXT Add third-parties licenses (#1955) 2023-12-18 11:07:43 +00:00
Test.cmd Improve user experience of restoring/building/testing (#2261) 2024-02-06 17:37:04 +01:00
TestFx.sln Add some acceptance test for MSTest (#2103) 2024-01-24 16:47:24 +01:00
azure-pipelines-official.yml Use pools from variables and recommended image (#2621) 2024-03-21 14:20:08 +00:00
azure-pipelines.yml Clean public, and outputs in official (#2526) 2024-03-07 15:05:06 +01:00
build.sh Add Ubuntu leg 2023-11-27 21:07:12 +01:00
global.json [main] Update dependencies from devdiv/DevDiv/vs-code-coverage, dotnet/arcade, microsoft/testanywhere (#2635) 2024-03-29 09:17:08 +01:00
open-vs.cmd Improve user experience of restoring/building/testing (#2261) 2024-02-06 17:37:04 +01:00
restore.cmd Improve user experience of restoring/building/testing (#2261) 2024-02-06 17:37:04 +01:00
restore.sh Improve user experience of restoring/building/testing (#2261) 2024-02-06 17:37:04 +01:00
test.sh Improve user experience of restoring/building/testing (#2261) 2024-02-06 17:37:04 +01:00

README.md

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, refactor pattern 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 provides guidance on how to best contribute
  • Dev Guide explains how to build and test
  • Documentation contains information about history, context and supported or unsupported features. It also gather 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 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.