Tuesday, October 20, 2020

Test and Code: 135: Speeding up Django Test Suites

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:

Support Test & Code : Python Testing for Software Engineering

Links:

<p>All test suites start fast. But as you grow your set of tests, each test adds a little bit of time to the suite. <br> What can you do about it to keep test suites fast? <br> Some things, like parallelization, are applicable to many domains. <br> What about, for instance, Django applications?<br> Well, Adam Johnson has thought about it a lot, and is here to tell us how we can speed up our Django test suites. </p> <p>Topics include:</p> <ul> <li>parallelizing tests</li> <li>moving from disk to memory</li> <li>using fake data and factory functions</li> <li>targeted mocking</li> </ul><p>Special Guest: Adam Johnson.</p><p>Sponsored By:</p><ul><li><a href="https://ift.tt/3iVQ7jk" rel="nofollow">monday.com</a>: <a href="https://ift.tt/3iVQ7jk" rel="nofollow">Creating a monday.com app can help thousands of people and win you prizes. Maybe even a Tesla or a MacBook.</a></li><li><a href="https://ift.tt/3eBYfEe" rel="nofollow">Datadog</a>: <a href="https://ift.tt/3eBYfEe" rel="nofollow">Modern monitoring & security. See inside any stack, any app, at any scale, anywhere. Visit testandcode.com/datadog to get started.</a></li></ul><p><a href="https://ift.tt/2tzXV5e" rel="payment">Support Test & Code : Python Testing for Software Engineering</a></p><p>Links:</p><ul><li><a href="https://ift.tt/36tJErf" title="Speed Up Your Django Tests" rel="nofollow">Speed Up Your Django Tests</a> &mdash; the book by Adam Johnson</li><li><a href="https://ift.tt/3jglDZt" title="Kukicha" rel="nofollow">Kukicha</a> &mdash; "or twig tea, ..., is a Japanese blend made of stems, stalks, and twigs."</li></ul>

from Planet Python
via read more

No comments:

Post a Comment

TestDriven.io: Working with Static and Media Files in Django

This article looks at how to work with static and media files in a Django project, locally and in production. from Planet Python via read...