Paul Krill
Editor at Large

Microsoft offers SDK for testing framework

news
Apr 11, 20242 mins

The MSTest SDK is intended to improve the .NET unit testing experience through better defaults, simpler usage, and easier extensibility.

Fresh outages strike Microsoft NZ services
Credit: Emagnetic / Shutterstock

Microsoft has announced the MSTest SDK. Built on the MSBuild Project SDK system and based on the MSTest runner, the MSTest SDK is designed to give developers a better experience for testing with MSTest, Microsoft’s framework for unit testing.

The MSTest SDK, announced April 11, makes project configuration easier via sensible defaults and flexible options, Microsoft said. To use the MSTest SDK, developers must create an MSTest project, or update an existing MSTest project, and replace the content of the .csproj file.

Advantages of the new MSTest SDK include better defaults, easier extensibility, and easier opt-in for new features such as native AOT tests. The default suggestions align with patterns provided by the main types of applications such as ASP.NET Core, Razor, and Windows Desktop. The SDK will use the default suggestions that the MSTest team makes for these projects. As these are updated, developers need only update the MSTest SDK version to get the new defaults.

In addition to MSTest runner, Microsoft is shipping a set of extensions that developers can install as NuGet packages to enhance their testing. And to help developers select both the correct defaults and the right extensions for their test projects, Microsoft has introduced profiles in the MSTest SDK. Three profiles currently are being provided: Default, AllMicrosoft, and None. Default includes the Microsoft CodeCoverage and Trx.Report extensions.

While the MSTest SDK style still is in development, it stands as the cornerstone of Microsoft’s forthcoming evolutions and features, the company said. Microsoft encourages MSTest users to transition to this SDK style that will become the standard for the MSTest project template in .NET 9.

Further reading:

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author