prompt

Flaky Test Diagnoser

Diagnose why a test is flaky and propose a stable fix.

Updated June 2026
The prompt
Act as a senior test engineer. Given this intermittently failing test {{test_code}} and its failure logs {{logs}}, list the most likely causes of flakiness ranked by probability with the evidence for each, such as timing, shared state, network, or ordering. Then give the smallest change that makes it deterministic and one guardrail to stop the class of issue returning. Name what you are unsure about.
Did it work? Rate this prompt

Variables

Test code
Failure logs

Details

Author

AI Khazna

License

Security

Type

prompt

Related assets

More curated picks in Development & Code.

Audit before you install

Run any source through our checks - AI visibility, security, performance, and stack detection.

More in Development & Code