Prompt

Fix a flaky test

Finds why a test passes and fails intermittently and fixes the cause instead of adding retries. Use when a test fails only sometimes, locally or in CI.

Full prompt

English
Help me fix a flaky test.
Inputs: test; failure log.

1. Classify timing, shared-state and dependency failures.
2. verify triggers through repeated runs.
3. repair isolation and synchronization with exit criteria for quarantine.

Deliver: Cause, Fix, Evidence.
Clarify critical gaps, separate facts from assumptions, and do not invent data, citations or completed actions.

My material: [fill in here]

Before you start

Provide test; failure log.

Source and license

Hodios · Fix a flaky test

gabrielanhaia

CC0-1.0