зеркало из https://github.com/microsoft/testfx.git
d6fc6d663a
Localized file check-in by OneLocBuild Task: Build definition ID 1218: Build ID 2417867 |
||
---|---|---|
.config | ||
.github | ||
docs | ||
eng | ||
samples | ||
src | ||
test | ||
.editorconfig | ||
.git-blame-ignore-revs | ||
.gitattributes | ||
.gitignore | ||
.markdownlint.json | ||
.markdownlintignore | ||
Build.cmd | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
Directory.Build.Local.props | ||
Directory.Build.Local.targets | ||
Directory.Build.props | ||
Directory.Build.targets | ||
LICENSE | ||
NuGet.config | ||
README.md | ||
SECURITY.md | ||
THIRD-PARTY-NOTICES.TXT | ||
Test.cmd | ||
TestFx.sln | ||
azure-pipelines-official.yml | ||
azure-pipelines.yml | ||
build.sh | ||
global.json | ||
open-vs.cmd | ||
restore.cmd | ||
restore.sh | ||
test.sh |
README.md
Microsoft Test Framework
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.