Bring test generation into your Copilot workflow
For teams standardizing on GitHub Copilot, we’ve created a dedicated CoreStory + GitHub Copilot Automated Test Generation Playbook. It shows you how to pair CoreStory’s code intelligence with Copilot Chat, custom instructions, and (optionally) Agent mode so you can generate production-ready tests directly inside VS Code or your preferred IDE.
No new toolchain—just a deeper test workflow baked into the one you already use.
Why this matters for Copilot users
Out of the box, Copilot is great at autocomplete and small snippets—but it doesn’t know what your system is supposed to do. By feeding Copilot CoreStory’s understanding of business rules, flows, and edge cases, you give it a reliable target to test against. The playbook turns that into a repeatable pattern for generating tens of high-quality tests in minutes, aligned with real acceptance criteria and focused on the riskiest behaviors.
What this playbook helps you do
With this playbook configured, Copilot will:
- Consult CoreStory for structure, dependencies, and rules before proposing any tests
- Generate tests in small, reviewable rounds—starting with happy paths and layering on edge cases, error handling, and integration flows
- Follow clear standards: AAA structure, precise assertions, realistic fixtures, and explicit edge-case coverage
- Plan coverage using a test pyramid and risk tiers so you don’t drown in low-value tests
In practice, teams can target 10–15 tests in a few minutes and 50+ cases in about ten minutes for a focused area of the codebase.
What’s inside
The playbook provides:
- A role-based guide and prompt library for Copilot Chat
- A decision tree for when to use unit vs integration vs E2E tests
- An edge-case catalog and coverage strategy tuned to Copilot’s workflow
- Concrete targets for QA time savings and acceptance-criteria alignment
Who this is for
This is built for engineering teams that have already rolled out Copilot but want more structure around how it participates in testing—especially in domains where correctness matters and undocumented behavior is risky.
How to get started
Add the suggested instructions and prompts from the playbook into your .github configuration, connect CoreStory to a pilot repo, and run a single service or module through the process. Use the before-and-after coverage and QA time metrics to decide how aggressively to expand usage.

.png)

.png)
