Engineering
6 min read
A field guide to flaky tests
Flaky tests cost more than they look. The patterns we see most often, and how Monadot finds and fixes them.


Category
Engineering
Published
Reading
6 min read
Share
// article
A flaky test fails sometimes and passes when you run it again. It feels harmless. It isn't: every flake teaches your team to ignore red builds.
The usual suspects
Time and timezones
Shared state between tests
Network calls that should have been mocked
Order-dependent setup
How Monadot fixes them
The agent reruns a failing test in isolation, compares the runs and traces the difference back to its cause. Then it proposes the smallest fix that makes the test deterministic.
$

