GitLab Well Architected
Cookbook navigation
Prompts / Review Test Coverage Gaps

Review Test Coverage Gaps

TestingDeveloperQuality-AssuranceVerifyBeginner

Find untested code paths and prioritize which areas need coverage most urgently.

For GitLab Duo

prompt

Analyze test coverage for [MODULE/COMPONENT]:

Current coverage: [PERCENTAGE]

Identify:
1. Untested functions/methods
2. Uncovered edge cases
3. Missing error scenario tests
4. Integration points without tests
5. Priority areas to test next

Use the prompt

Provide the tests and coverage report for the same revision. The most important gap may be an untested behavior even when the lines involved already appear covered.