net6.0
Support for writing functional tests for MVC applications. This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/ffaea14b06ea8b247fa4894b7d21ecf6da2cafbc
Published
Mar 11, 2021
5y ago
Total Downloads
402.1M
402,052,960
Deprecated Package Version
Reason: Other, Legacy
This package has been deprecated as part of the .NET Package Deprecation effort. You can learn more about it from https://github.com/dotnet/announcements/issues/217
Install
dotnet add package Microsoft.AspNetCore.Mvc.Testing --version 6.0.0-preview.2.21154.6
| Product | Versions |
|---|---|
| .NET |
Changes from Previous Version
v6.0.0-preview.1.21103.6v6.0.0-preview.2.21154.6
Added Frameworks
net6.0
Removed Frameworks
.NETCoreApp6.0
Added Dependencies
Microsoft.AspNetCore.TestHost(net6.0)
Microsoft.Extensions.Hosting(net6.0)
Removed Dependencies
Microsoft.AspNetCore.TestHost(.NETCoreApp6.0)
Microsoft.Extensions.DependencyModel(.NETCoreApp6.0)
Microsoft.Extensions.Hosting(.NETCoreApp6.0)
Adoption Assessment
API and MVC apps that need realistic middleware, routing and dependency injection coverage without external process orchestration.
This version is marked prerelease. Validate its API and upgrade path before production use.NuGet marks this package as deprecated. Review the publisher's migration guidance before adopting it.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.
Editorial Note: Bootstraps ASP.NET Core applications in tests via TestServer/WebApplicationFactory for high-fidelity HTTP integration tests. Trade-off: External dependencies still need explicit test doubles or infrastructure provisioning to avoid false confidence.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.