Ready-to-use prompts for generating tests with CoreStory + GitHub Copilot. Copy, paste, and customize for your needs.

Use Copilot Chat in VS Code (Cmd/Ctrl+Alt+I), inline chat (Cmd/Ctrl+I), or Agent mode (Cmd/Ctrl+Shift+I). When helpful, include Copilot context like @workspace, #file, #selection, #codebase, and slash commands such as /tests, /setupTests, /fix, /explain.


Table of Contents


Quick Templates

Universal Template (Works for Almost Everything)

Open Copilot Chat. (Tip: include @workspace and #file/#selection as needed.)

I'm working on CoreStory project {project-id}.

Generate tests for {feature/module/component}.

Requirements:
- {list your requirements}

Test types needed: {unit/integration/e2e}
Framework: {Jest/PyTest/JUnit/etc.}
Coverage goal: {90%/all acceptance criteria/edge cases}

Use CoreStory context + repository code via @workspace. Include edge cases and error scenarios.

5-Second Template (Minimal)

I'm working on CoreStory project {project-id}.

Generate {unit/integration/e2e} tests for {feature} using {framework}.
Cover {requirements}. Use @workspace and CoreStory context.

Comprehensive Template (Maximum Detail)

I'm working on CoreStory project {project-id}.

TARGET: {specific file/module/component} (reference with #file if open)

GENERATE: Comprehensive test suite including:
- Unit tests for business logic
- Integration tests for dependencies
- E2E tests for user workflows
- Edge cases and boundary conditions
- Error scenarios

ACCEPTANCE CRITERIA:
1. {criterion 1}
2. {criterion 2}
3. {criterion 3}

TECHNICAL:
- Framework: {framework}
- Mocking: {what to mock}
- Test data: {fixtures/factories/inline}
- Patterns: {AAA/GWT/POM}

REQUIREMENTS:
- {additional requirement 1}
- {additional requirement 2}

Organize by: {feature/test type/acceptance criterion}
Use @workspace + CoreStory for cross-referencing specs vs. code.