135: Speeding up Django Test Suites - Adam Johnson
All test suites start fast. But as you grow your set of tests, each test adds a little bit of time to the suite.
What can you do about it to keep test suites fast?
Some things, like parallelization, are applicable to many domains.
What about, for instance, Django applications?
Well, Adam Johnson has thought about it a lot, and is here to tell us how we can speed up our Django test suites.
Topics include:
- parallelizing tests
- moving from disk to memory
- using fake data and factory functions
- targeted mocking
Special Guest: Adam Johnson.
Sponsored By:
- monday.com: Creating a monday.com app can help thousands of people and win you prizes. Maybe even a Tesla or a MacBook.
- Datadog: Modern monitoring & security. See inside any stack, any app, at any scale, anywhere. Visit testandcode.com/datadog to get started.
Links:
- Speed Up Your Django Tests — the book by Adam Johnson
- Kukicha — "or twig tea, ..., is a Japanese blend made of stems, stalks, and twigs."