CodingSaves ~1 hour

Identify and improve test coverage gaps

Find and fill the most impactful gaps in your test suite systematically.

The prompt

You are a quality engineering lead. Review the following source code and its existing test file, then identify coverage gaps. For each gap found, explain: what scenario or code path is untested, why it matters (what could go wrong if it fails silently), and write the missing test(s) to fill the gap. Group your findings into: critical gaps (could hide production bugs), important gaps (reduces confidence), and nice-to-have gaps (edge cases unlikely in practice). Provide actionable tests, not just observations.

Source code: [PASTE SOURCE CODE]
Existing tests: [PASTE EXISTING TEST FILE]
Test framework: [FRAMEWORK NAME]

Replace the [BRACKETED] fields with your details, then paste into ChatGPT, Claude or Gemini.

Want AI to fill this in for you?

Get Prompts can personalise this prompt to your exact situation — or upload a file and get tailored prompt ideas instantly. 3 free edits, no sign-up.

Try it free →

More coding prompts