Introducing Quartz: A Deterministic Time Testing Library for Go
I hate flaky tests.
We repeatedly run our suite of tests during development time and on every commit, so if a test is flaky, developers quickly learn not to trust it. It’s so easy to just retry and assume everything is fine. This is the worst of both worlds because the test isn’t providing value as an indication that something needs to be fixed and it drags out the review-merge cycle with test reruns.
Across a modest-sized development team, even a test that flakes 1 in 100 will burn one of your ...
Read more at coder.com