-
12 things to watch when debugging flaky tests
✅ Quarantine flaky tests fast – don’t let them poison CI.🔄 Check for leaked global state (variables, config, env).🗄️ Clean your database between tests.⏰ Look for time-dependent logic sneaking in.🌐 Mock external dependencies – never trust the network.♻️ Reset everything: globals, env, DB state.📌 Freeze time for stable results.🖥️ For browser tests: use robust selectors… Continue reading
-
A tiny detail that completely changes how your debugger behaves
Yesterday, while trying to create example errors on my localhost for another article, I accidentally found a real bug during my normal workflow. While debugging it, I noticed something worth sharing 👇 When you put a debugger outside the ActiveRecord::Base.transaction block, it doesn’t follow the same data flow as when you put it inside —… Continue reading
-
There is taking notes and there is “taking notes”
I admire people who are so organised that they can call it a system. I came across this article: https://www.eleanorkonik.com/p/the-konik-method-for-organizing-electronic about note-taking, even though I love the idea and how everything has its place. I know and have to admit that I will never manage that. I take notes all the time. I use Obsidian,… Continue reading