Microsoft has officially rolled out GitHub Copilot testing for .NET as part of Visual Studio 2026 v18.3, bringing AI-driven unit test generation directly into the IDE. The new capability helps developers automatically generate, build, and run high-quality tests for C# code, shortening the feedback loop between writing and validating code. Early users can now leverage richer IDE integration and more natural prompting for widespread test automation.
Here’s what you need to know:
Built for real testing workflows
The testing agent understands your solution structure, frameworks, and build system — acting as an end-to-end workflow, not just a one-off prompt.
Natural, free-form prompting
Simply start with @Test and describe what you want in plain language — no rigid commands required.
More control over test generation
Generate or fix tests, target coverage goals, and apply your team’s testing conventions using simple prompts. You can reference specific code areas or even include current Git changes for more precise results.
Getting started
Open your C# project or solution, start a new Copilot Chat thread, and begin your prompt with @Test, then select Send. Test Explorer shows the results as the tests are generated, and once complete, GitHub Copilot testing provides a summary in Copilot Chat.
Complement your Dynamics 365 CRM with custom business applications for maximum productivity. Contact us today.