Test Coverage Generator
# Prompt: Test Coverage Generator
**Purpose:** Automatically generate comprehensive test suites (unit, integration, E2E) for existing codebases with high coverage targets, mocking strategies, and edge case identification.
**Best For:** Increasing test coverage from 0-40% to 80%+, adding tests to legacy code, TDD adoption
**Model Recommendation:** Claude Sonnet 4.5 in Cursor (Agent mode)
**Usage Instructions:**
1. Open a file you want to test in Cursor.
2. Paste this prompt in Agent mode.
3. The agent will analyze the file and generate a complete test suite.
4. Repeat file by file or provide a whole module at once.
---
## THE PROMPTwhen to use it
Community prompt sourced from the open-source GitHub repo m0shaban/enterprise-ai-prompts (MIT). A "Test Coverage Generator" 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
productivitycommunitydeveloper
source
m0shaban/enterprise-ai-prompts · MIT
more in Productivity
Productivity✓ tested
Summarize a doc into decisions & actions
chief of staff who extracts what to DO, not just what was said
Productivity✓ tested
Draft a reply to a hard email
calm, direct communicator who de-escalates without caving
Productivity✓ tested
Turn a brain-dump into a weekly plan
planning coach who protects your focus, not just your calendar