Verify

Flaky test

A flaky test is one that sometimes passes and sometimes fails without any code change, typically caused by timing dependencies, shared state, network/external-system reliance, or race conditions. Flaky tests destroy trust in the test suite: developers learn to ignore failures and miss real regressions.

Updated

Flakiness is the silent killer of test discipline. The progression is predictable: one flaky test gets ignored, then re-run; the team learns to re-run failures; eventually any test failure is presumed flaky and re-run. By the time a real regression hits, nobody catches it. The remediation hierarchy: fix the root cause (eliminate the timing dependency, isolate the shared state, mock the external service), quarantine the flaky test if the fix is non-trivial, and delete the test if it's both flaky and low-value. The most expensive option, accepting flakiness, is also the most common; the cost surfaces later as missed regressions.

AI test generation in Stride

See the term at work

Stride keeps stories, architecture decisions, tests and delivery data in one workspace, where the terms in this glossary are things you can open.