AI Services Market › Use cases › Software & DevOps
Software & DevOpsDone with GitHub Copilot 2026-11-20
Use Copilot coding agent to write tests in dotnet/runtime
The .NET team used Copilot coding agent for ten months in dotnet/runtime; tests were a strength, though some broke on older frameworks or failed in CI.
- What They Did
- Maintainers in dotnet/runtime assigned test-writing tasks to Copilot coding agent, including coverage additions. The agent used coverage tools and wrote tests. A maintainer reviewed each PR. The team added instructions covering testing conventions: no exact exception message assertions, conditional test attributes, and tests that can't run on .NET Framework. They also told it to avoid InternalsVisibleTo.
- How It Went
- Testing PRs succeeded 75.6% of the time (99 PRs). The agent produced too many redundant tests, sometimes encoded buggy behavior as expected, and wrote tests that broke on older frameworks or in CI.
- Worth Knowing
- Review needs pruning and care: 65.7% of the agent's added lines were tests, and local green runs didn't cover CI's many configurations.
Try it yourself with GitHub Copilot
In [owner/repo], write tests for [class or feature] following the existing test conventions and covering edge cases. Check that they run on every [framework or version] we support, not just the newest, and fix any CI failures. Open a draft PR listing which test cases you added and anything you could not get passing.
Do this with a skill.
These AI Services Market playbooks do this exact job.