home/roleplay/test-prompt

Test.prompt

GPTClaudeGemini··1,275 copies·updated 2026-07-14
test-prompt.prompt
## Few-Shot Test Generation Framework

Generate tests that match the project's existing patterns.

### Analysis
- What is the function/module under test?
- What are the inputs, outputs, and side effects?
- What edge cases exist?

### Test Structure (match existing project style)
- Use the same test framework detected in the project
- Follow the same assertion style (expect/assert/should)
- Match the same mock patterns
- Follow the same file organization

### Test Cases
1. **Happy path**: Normal expected behavior
2. **Edge cases**: Empty inputs, null, undefined, boundary values
3. **Error cases**: Invalid inputs, network failures, timeouts
4. **Integration**: Interaction with dependencies

when to use it

Community prompt sourced from the open-source GitHub repo N1KH1LT0X1N/Apex (MIT). A "Test.prompt" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

roleplaycommunitygeneral

source

N1KH1LT0X1N/Apex · MIT