Yesterday, a flaky test took me on a debugging journey.
A test that fails seemingly randomly and never when you're focusing on just that test can be a difficult one to pin down.
I wrote a blog post about how I approached the situation and narrowed down the case to where I was able to consistently make it fail or succeed — and then find out why it did so and eventually fix it.
https://hamatti.org/posts/debugging-a-flaky-test-how-i-methodologically-tamed-an-annoying-bug/
Juha-Matti Santala - Community Builder. Dreamer. Adventurer.Debugging a flaky test — how I methodologically tamed an annoying bugI spent a nice afternoon on Thursday to debug a seemingly flaky test. Following a methodology that doesn’t rely on assumptions or prior knowledge of the codebase, I managed to narrow down the culprit and work from there to create a fix.