23.2 C
New York
Thursday, June 6, 2024

Microsoft provides WinUI assist to MSTest


Microsoft has up to date its MSTest testing framework for .NET, enhancing it with WinUI assist and finest practices for Roslyn-based code analyzers.

The corporate introduced MSTest 3.4 on June 5. The MSTest framework might be accessed through NuGet.

With MSTest 3.4, assist for WinUI framework functions is added to MSTest.Runner. With this enchancment, a mission pattern is obtainable and work is underneath solution to simplify testing of unpackaged WinUI functions. Microsoft additionally has improved the check runner’s efficiency by utilizing built-in System.Textual content.Json for .NET reasonably than Jsonite and by caching command line choices.

For MSTest.Analyzers, a set of code analyzers for the Roslyn compiler platform that ships with MSTest, Microsoft has added 9 guidelines to cowl frequent finest practices and pitfalls. The principles are meant to make sure appropriate use of assertions and attributes, assist implement design preferences, and supply different enhancements.

Additionally in MSTest 3.4, Microsoft has mounted a longstanding request to assist STA threads in MSTest for VSTest and MSTest.Runner for all supported goal frameworks. Plans name for enhancing the expertise by having some particular assessments or check lessons run in STA thread mode. Microsoft additionally has launched the power to outline timeouts on fixture strategies, comparable to AssemblyInitiative, AssemblyCleanup, ClassCleanup, and TestCleanup. This gives extra management over check execution.

Microsoft additionally has added [Timeout] assist to all fixture strategies in MSTest 3.4, together with initialize and cleanup strategies. Additionally added was STA thread assist for UI assessments. Each have been points reported by customers and the group. Testing with Playwright and Aspire has been simplified by eradicating mission boilerplate. And for the MSTest SDK, builders now not must explicitly add utilizing Microsoft VisualStudio.TestTools.UnitTesting in recordsdata. Plus, pattern initiatives illustrating the right way to use the SDK have been enhanced.

Copyright © 2024 IDG Communications, Inc.



Supply hyperlink

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles