Consistency at team scale
Copilot is often switched on and left to each engineer. The result is uneven: some get great tests, others get suggestions that ignore the framework. The difference is configuration and habits, not the tool.
We make Copilot's behaviour part of the repository: instructions it reads on every request, prompt files for common test tasks, and a coding-agent workflow for well-scoped issues, all reviewed like any other change.
What we set up
Custom instructions
A copilot-instructions file covering structure, naming, waits and data.
Prompt files
Reusable prompts for writing, fixing and reviewing tests.
Coding agent workflow
Issue templates and environments so Copilot can run your tests.
Review settings
Copilot code review on pull requests, focused on test quality.
Actions integration
CI that runs agent-written tests and reports clearly on failure.
Usage guidelines
What to use Copilot for, what not to, and how to review its output.
How we keep it reliable
- Instructions in the repo: Everyone, and every agent, works from the same written standards.
- Scoped issues for the agent: Clear acceptance criteria and a single area of the codebase per issue.
- Green CI or no merge: Agent pull requests must pass the full suite like anyone else's.
- Review for intent: Reviewers check that tests assert the right behaviour, not just that they pass.
- Iterate on instructions: Recurring review comments become new instructions.
Good first use cases
- Unit tests for new code: Generate tests alongside every feature pull request.
- Coverage issues: Assign low-coverage modules to the coding agent as issues.
- Test data builders: Factories and builders that remove hard-coded test data.
- Review assistance: Flag missing negative cases and fragile selectors before human review.
Where it fits
Copilot-assisted testing builds on your existing GitHub workflow and QA automation framework. We configure it, train the team and measure the effect on coverage and review time. See our QA automation, API testing and performance testing services.