My projects often have hundreds of tests, but my CI never takes more than a minute or two to finish. Let me guide you through a number of techniques to make your tests fast(er).
Slow tests suck. They are annoying and slow down you and your team. Hours and hours of engineer time is lost waiting for the CI to finish. I’ll go through a number of approaches and principles to help you write fast tests.
I’ve been keeping notes on how to maintain a fast test suite for a few years now: https://github.com/zupo/awesome-pytest-speedup
It’s high time I give a talk about the latest learnings.