12: Coverage.py with Ned Batchelder




Test & Code - Software Testing, Development, Python show

Summary: <p>In this episode I interview Ned Batchelder.</p> <p>I know that coverage.py is very important to a lot of people to understand how much of their code is being covered by their test suites.<br> Since I'm far from an expert on coverage, I asked Ned to discuss it on the show.</p> <p>I'm also quite a fan of Ned's 2014 PyCon talk "Getting Started Testing", so I definitely asked him about that.</p> <p>We also discuss edX, Python user groups, PyCon talks, and more.</p> <p>Some of what's covered (pun intended) in this episode:</p> <ul> <li>coverage.py <ul> <li>types of coverage <ul> <li>Line coverage</li> <li>branch coverage</li> <li>Behavior coverage</li> <li>Data coverage</li> </ul> </li> <li>How Ned became the owner of coverage.py</li> <li>Running tests from coverage.py vs running coverage from test runner.</li> </ul> </li> <li>edX <ul> <li>what is it</li> <li>what Ned's role is</li> </ul> </li> <li>Ned's blog</li> <li>Ned's PyCon 2014 talk "Getting Started Testing" <ul> <li>Teaching testing and the difficulty of the classes being part of unittest</li> <li>fixtures package </li> <li>some of the difficulties of teaching unittest because of it's class based system.</li> <li>the history of classes in unittest coming from java's jUnit implementation</li> </ul> </li> <li>Boston's Python Group</li> <li>PyCon in Portland</li> <li>Ned to do a talk here "Machete mode debugging".</li> <li>Practicing PyCon talks at local group meetings.</li> <li>At the very least, practice it in front of a live audience.</li> </ul> <p><em>Links:</em></p> <ul> <li> <a href="http://nedbatchelder.com/" rel="nofollow">Ned Batchelder</a> </li> <li><a href="https://pypi.python.org/pypi/coverage" rel="nofollow">Coverage</a></li> <li><a href="https://coverage.readthedocs.org" rel="nofollow">Coverage documentation</a></li> <li><a href="https://pypi.python.org/pypi/django-nose" rel="nofollow">django-nose</a></li> <li><a href="https://pypi.python.org/pypi/pytest-django" rel="nofollow">pytest-django</a></li> <li><a href="https://www.edx.org/" rel="nofollow">edX</a></li> <li><a href="https://open.edx.org/" rel="nofollow">open edX</a></li> <li><a href="http://www.meetup.com/bostonpython/" rel="nofollow">Boston Python User Group</a></li> <li> <a href="http://www.meetup.com/pdxpython/" rel="nofollow">Portland Python User Group</a> - I need to go to these</li> <li> <a href="https://us.pycon.org/2016/" rel="nofollow">PyCon 2016</a> - Planning on attending, it's in Portland. Yay!</li> <li> <a href="http://nedbatchelder.com/text/test0.html" rel="nofollow">Getting Started Testing</a> - Ned's 2014 Pycon talk</li> </ul><p><a rel="payment" href="https://www.patreon.com/testpodcast">Support Test &amp; Code - Software Testing, Development, Python</a></p>