GitHub Copilot’s .NET testing functionality, integrated into Visual Studio 2026 v18.3, now supports generating tests for xUnit, NUnit, and MSTest frameworks.
Microsoft has officially released GitHub Copilot testing for .NET, an innovative feature within GitHub Copilot Chat designed to automate C# code testing. This capability is now broadly available with the recent launch of Visual Studio 2026 v18.3 IDE.
The software giant initially unveiled this enhancement on February 11.
GitHub Copilot testing for .NET streamline the entire process of creating, executing, and testing C# code, whether for entire projects, individual files, classes, or specific members. According to Microsoft, it intelligently understands the developer’s solution architecture, preferred test frameworks, and build system, functioning as a comprehensive testing pipeline rather than merely responding to individual prompts. This new feature is capable of generating tests for leading frameworks such as xUnit, NUnit, and MSTest.
Upon receiving a testing instruction, GitHub Copilot automatically develops unit tests tailored to the selected code, compiles and runs them, identifies and attempts to rectify any failures, and reiterates the testing cycle until a reliable baseline is achieved, as explained by Microsoft.
Once test generation concludes, GitHub Copilot delivers a detailed summary, helping developers grasp the modifications made, Microsoft stated. This summary encompasses newly created or altered test files and projects, comparisons of code coverage before and after, indications of test success/failure and unstable outcomes, insights into areas lacking testability, and direct navigation links to the generated tests for quick review and further refinement.
Furthermore, GitHub Copilot testing for .NET now supports flexible, free-form prompting, making it simpler for developers to specify their testing requirements. It’s important to note that a paid GitHub Copilot license is required to utilize this new .NET testing functionality.