The New MSTest SDK

The New MSTest SDK

Welcome back to our newsletter!

微软 introduced the new MSTEST SDK which aims to make project configuration simpler through defaults and flexible options for .NET developers.

Let`s dive into the updates - (Don't let the complicated name get you down; it's actually cool).

Check out our latest jobs

What is MSTest?

MSTest , a part of Visual Studio for .NET, is a unit testing framework. Integrated into the IDE , it simplifies testing for developers in the Microsoft ecosystem. With its built-in features, MSTest streamlines the creation and execution of unit tests, making it a favoured tool among Visual Studio users.

MSTest SDK

The MSTest SDK simplifies the setup and running of MSTest tests by providing convenient defaults and customizable options on top of the MSBuild Project SDK system. It leverages the new MSTest runner, which is efficient and dependable.

With the SDK, you can easily configure extensions, understand recommended settings, and ensure version compatibility, streamlining your testing experience.


the benefits...

1) Better Defaults

It aligns with standard application patterns like ASP.NET Core and Windows Desktop, providing default settings recommended by the MSTest team. Updates between versions follow semantic versioning principles, ensuring easy and understandable updates.

2) Simplified Usage

By using the MSTest SDK , you automatically get default suggestions and updates, reducing the need for manual configuration.

3) Extensibility:

The SDK supports the MSTest runner and various extensions, making it easy to enhance your testing experience. You can choose from pre-defined profiles like Default, AllMicrosoft, or None, simplifying the selection of extensions.

The Default profile includes commonly used extensions like Microsoft Code Coverage and TRX report support, with the flexibility to opt-in or opt-out of additional extensions as needed.


Testing Native AOT

With MSTest SDK, you can now run tests in Native AOT mode, a feature unique to MSTest among .NET test frameworks. When you publish to AOT, the SDK detects it and seamlessly adjusts all necessary test packages and settings for this specialized mode.

Here`s why it's actually cool!

Example of project setup WITHOUT MSTest SDK:

and here`s an example WITH MSTest SDK.


In conclusion...

It`s still under development and serves as the foundation for future updates and features. Users are strongly encouraged to switch to this style, which will become the standard for the MSTest project template in .NET 9 .

Plus, upcoming releases will include new scenarios like Playwright and WinUI . As users, you can share your feedback by creating an issue in the microsoft/testfxWinUI.

Get more information about it by clicking into here.


?? Hot .NET Jobs by develop ??

Mid Level .NET Engineer-Permanent-Oxfordshire-Up to £60k.

.NET Developer (.NET, C#, WPF)- Derby- Hybrid. Permanent Derby

See more


Are you following us?

Click here to be the first to get our updates!


Areaf .

Software Developer at ILAC | Skilled in .NET, JavaScript, Azure and D365 | Driving Organizational Growth via Technology

6 个月

Does the SDK work to test Dynamics 365 plugins built utilizing .NET?

回复

要查看或添加评论,请登录

社区洞察

其他会员也浏览了