Microsoft has introduced the MSTest SDK. Built on the MSBuild Project SDK system and primarily based on the MSTest runner, the MSTest SDK is designed to offer builders a greater expertise for testing with MSTest, Microsoft’s framework for unit testing.
The MSTest SDK, introduced April 11, makes mission configuration simpler through wise defaults and versatile choices, Microsoft mentioned. To use the MSTest SDK, builders should create an MSTest mission, or replace an present MSTest mission, and substitute the content material of the .csproj file.
Advantages of the brand new MSTest SDK embody higher defaults, simpler extensibility, and simpler opt-in for brand spanking new options akin to native AOT checks. The default recommendations align with patterns supplied by the primary kinds of purposes akin to ASP.NET Core, Razor, and Windows Desktop. The SDK will use the default recommendations that the MSTest crew makes for these initiatives. As these are up to date, builders want solely replace the MSTest SDK model to get the brand new defaults.
In addition to MSTest runner, Microsoft is delivery a set of extensions that builders can set up as NuGet packages to reinforce their testing. And to assist builders choose each the right defaults and the suitable extensions for his or her take a look at initiatives, Microsoft has launched profiles within the MSTest SDK. Three profiles presently are being supplied: Default
, AllMicrosoft
, and None
. Default
contains the Microsoft CodeCoverage and Trx.Report extensions.
While the MSTest SDK type nonetheless is in improvement, it stands because the cornerstone of Microsoft’s forthcoming evolutions and options, the corporate mentioned. Microsoft encourages MSTest customers to transition to this SDK type that may grow to be the usual for the MSTest mission template in .NET 9.
Copyright © 2024 IDG Communications, Inc.