Friday, December 17, 2021

Test and Code: 173: Why NOT unittest?

In the preface of "Python Testing with pytest" I list some reasons to use pytest, under a section called "why pytest?". Someone asked me recently, a different but related question "why NOT unittest?".

unittest is an xUnit style framework. For me, xUnit style frameworks are fatally flawed for software testing.

That's what this episode is about, my opinion of

  • "Why NOT unittest?", or more broadly,
  • "What are the fatal flaws of xUnit?"

Sponsored By:

Support Test & Code in Python

Links:

<p>In the preface of &quot;Python Testing with pytest&quot; I list some reasons to use pytest, under a section called &quot;why pytest?&quot;. Someone asked me recently, a different but related question &quot;why NOT unittest?&quot;.</p> <p>unittest is an xUnit style framework. For me, xUnit style frameworks are fatally flawed for software testing.</p> <p>That&#39;s what this episode is about, my opinion of </p> <ul> <li>&quot;Why NOT unittest?&quot;, or more broadly, </li> <li>&quot;What are the fatal flaws of xUnit?&quot;</li> </ul><p>Sponsored By:</p><ul><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: TESTANDCODE22</li></ul><p><a href="https://ift.tt/2tzXV5e" rel="payment">Support Test & Code in Python</a></p><p>Links:</p><ul><li><a href="https://ift.tt/3Ebg2Ot" title="Python Testing with pytest, Second Edition" rel="nofollow">Python Testing with pytest, Second Edition</a></li><li><a href="https://ift.tt/1z4MD56" title="unittest docs" rel="nofollow">unittest docs</a></li><li><a href="https://ift.tt/3sgknhd" title="unittest assert methods" rel="nofollow">unittest assert methods</a></li><li><a href="https://ift.tt/3IY03ag" title="xUnit - Wikipedia" rel="nofollow">xUnit - Wikipedia</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...