Analyze test run results to find failure patterns and gaps
Turns raw CI test results into clusters of failures, likely flaky tests, coverage gaps, and a prioritized fix list.
The prompt
Analyze my automated test results and tell me what to fix first.
Results data: [PASTE - JUnit/XML summary, CI log excerpts, or a table of test name, status, duration, run date]
Number of runs covered: [e.g. "last 30 CI runs on main"]
Coverage report, if any: [PASTE or "none"]
Recent changes: [releases, dependency upgrades, infra changes in the period]
What we care about most: [release confidence / CI speed / flakiness]
Do this:
1. Summary metrics: pass rate per run, total failures, slowest tests, and the trend across runs.
2. Failure clusters: group failures by shared error message, stack frame, module, or environment, and give the likely common cause for each cluster.
3. Flaky test candidates: tests that pass and fail on the same code, with the evidence and the likely type (timing, ordering, shared state, external dependency, resource limits).
4. Real regressions: failures that started at a specific run or change.
5. Coverage gaps: risky areas (recently changed, frequently failing, or business-critical) with thin or no tests.
6. A prioritized action list: Item | Evidence | Impact | Effort | Owner suggestion.
Rules:
- Base every conclusion on the data I pasted and cite the test names or runs it rests on.
- Say clearly when the data is too thin to call something flaky versus broken, and tell me what extra data would settle it.
- Do not recommend deleting or permanently skipping a test without naming what risk that leaves uncovered.
Highlighted [brackets] are blanks to replace with your own details.
Fill in the blanks and use this promptMore Software Development prompts
What to fill in
- e.g. "last 30 CI runs on main"
- PASTE or "none"
- releases, dependency upgrades, infra changes in the period
- release confidence / CI speed / flakiness
How this prompt is built
This prompt follows the RTF structure (Role, Task, Format). RTF tells the model who to be, what to do and what shape the answer should take. It is the quickest structure that still gives noticeably better results than a bare request.
Related prompts
- Audit a codebase for bugs, risks, and tech debtA systematic review of a repository with prioritized findings and a remediation plan.
- Learn a programming language or conceptA patient coding tutor that explains concepts, gives exercises, and reviews your solutions.
- Design tenant isolation for my multi-tenant SaaS appA recommended tenancy model with data isolation, noisy-neighbor controls, and tests that prove one customer can't see another's data.
- Write a README and publish my first coding project on GitHubA clear README, a safe publishing checklist, and a short post to share what you built.