home/productivity/test-coverage-generator

Test Coverage Generator

GPTClaudeDeepSeek··509 copies·updated 2026-07-14
test-coverage-generator.prompt
# 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 PROMPT

when 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