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.
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.
I'm working on CoreStory project {project-id}.
Generate {unit/integration/e2e} tests for {feature} using {framework}.
Cover {requirements}. Use @workspace and CoreStory context.
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.