Microsoft has introduced the MSTest SDK. Constructed on the MSBuild Mission 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 by way of wise defaults and versatile choices, Microsoft mentioned. To make use of the MSTest SDK, builders should create an MSTest mission, or replace an present MSTest mission, and substitute the content material of the .csproj file.
Benefits of the brand new MSTest SDK embody higher defaults, simpler extensibility, and simpler opt-in for brand new options equivalent to native AOT exams. The default strategies align with patterns supplied by the primary varieties of purposes equivalent to ASP.NET Core, Razor, and Home windows Desktop. The SDK will use the default strategies that the MSTest workforce makes for these tasks. As these are up to date, builders want solely replace the MSTest SDK model to get the brand new defaults.
Along with MSTest runner, Microsoft is transport a set of extensions that builders can set up as NuGet packages to reinforce their testing. And to assist builders choose each the proper defaults and the correct extensions for his or her take a look at tasks, Microsoft has launched profiles within the MSTest SDK. Three profiles at present are being supplied: Default, AllMicrosoft, and None. Default contains the Microsoft CodeCoverage and Trx.Report extensions.
Whereas 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 can develop into the usual for the MSTest mission template in .NET 9.
Copyright © 2024 IDG Communications, Inc.


