<div dir="ltr"><div>I recommend you to use nose plugin.<br></div><div>nosetest will detect test_*.py files automatically and report coverage if option --with-coverage activated.<br><br></div><div>A small example of usage: <a href="http://www.saltycrane.com/blog/2012/04/test-coverage-nose-and-coveragepy/">http://www.saltycrane.com/blog/2012/04/test-coverage-nose-and-coveragepy/</a><br><br></div><div>report to nose cover plugin documentation for more information.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-09-16 3:46 GMT+02:00 Mcgregor, Cecil <span dir="ltr">&lt;<a href="mailto:cmcgregor@paypal.com" target="_blank">cmcgregor@paypal.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">I’m using coverage 3.7.1 with python 2.7.3 on Red Hat 4.1.2 linux<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">I’ve been attempting to get coverage on the test code themselves. So far coverage<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">seems to ignore these files. <u></u>
<u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">It’s not obvious from the documentation how I can do this.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">How do I cover the test_*.py files as part of the coverage reports?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Thanks<u></u><u></u></span></p>
</div>
</div>

<br>_______________________________________________<br>
testing-in-python mailing list<br>
<a href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a><br>
<a href="http://lists.idyll.org/listinfo/testing-in-python">http://lists.idyll.org/listinfo/testing-in-python</a><br>
<br></blockquote></div><br></div>