What is a flaky test, and how do you handle it?

IntermediateConceptCI/CD
Answer

A test that passes and fails on the same code. Quarantine it (mark it as non-blocking and track it), fix the root cause (timing, shared state, ordering), and don't hide it with blind retries.

All Real-World Interview questions Roadmap: Interview readiness

More on CI/CD