Friday, August 28, 2020

Test and Code: 128: pytest-randomly - Adam Johnson

Software tests should be order independent. That means you should be able to run them in any order or run them in isolation and get the same result.

However, system state often gets in the way and order dependence can creep into a test suite.
One way to fight against order dependence is to randomize test order, and with pytest, we recommend the plugin pytest-randomly to do that for you.

The developer that started pytest-randomly and continues to support it is Adam Johnson, who joins us today to discuss pytest-randomly and another plugin he also wrote, called pytest-reverse.

Special Guest: Adam Johnson.

Sponsored By:

Support Test & Code : Python Testing for Software Engineering

Links:

<p>Software tests should be order independent. That means you should be able to run them in any order or run them in isolation and get the same result.</p> <p>However, system state often gets in the way and order dependence can creep into a test suite.<br> One way to fight against order dependence is to randomize test order, and with pytest, we recommend the plugin pytest-randomly to do that for you.</p> <p>The developer that started pytest-randomly and continues to support it is Adam Johnson, who joins us today to discuss pytest-randomly and another plugin he also wrote, called pytest-reverse.</p><p>Special Guest: Adam Johnson.</p><p>Sponsored By:</p><ul><li><a href="https://ift.tt/1a4OF3i" rel="nofollow">HoneyBadger</a>: <a href="https://ift.tt/1a4OF3i" rel="nofollow">When bad things happen, it's nice to know that Honeybadger has your back. 30% off for first 6 months when you mention Test & Code Podcast when signing up.</a></li><li><a href="https://ift.tt/2JDHRTz" rel="nofollow">PyCharm Professional</a>: <a href="https://ift.tt/2JDHRTz" rel="nofollow">Try PyCharm Pro for 4 months and learn how PyCharm will save you time.</a> Promo Code: TESTANDCODE20</li><li><a href="https://ift.tt/2Qj9RS9" rel="nofollow">Talk Python Training</a>: <a href="https://ift.tt/2Qj9RS9" rel="nofollow">Online video courses for Python developers</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/2ElhdwA" title="pytest-randomly: pytest plugin to randomly order tests and control random.seed" rel="nofollow">pytest-randomly: pytest plugin to randomly order tests and control random.seed</a></li><li><a href="https://ift.tt/3hFCUv5" title="pytest-reverse: pytest plugin to reverse test order." rel="nofollow">pytest-reverse: pytest plugin to reverse test order.</a></li><li><a href="https://ift.tt/3lmdyom" title="Empirically revisiting the test independence assumption" rel="nofollow">Empirically revisiting the test independence assumption</a></li><li><a href="https://ift.tt/2U7rPtD" title="pytest-xdist" rel="nofollow">pytest-xdist</a></li><li><a href="https://ift.tt/2aJSnuc" title="factory_boy " rel="nofollow">factory_boy </a></li><li><a href="https://ift.tt/2Lrdvbx" title="Faker" rel="nofollow">Faker</a></li><li><a href="https://numpy.org/" title="NumPy" rel="nofollow">NumPy</a></li><li><a href="https://ift.tt/2CCZcuF" title="Hyrum's Law" rel="nofollow">Hyrum's Law</a></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...