<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 9/15/14 9:46 PM, Mcgregor, Cecil wrote:<br>
    <blockquote
cite="mid:3353C423A8DAF84B850981194DB6210B09D8E9C6@PHX-EXRDA-S51.corp.ebay.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="font-size:12.0pt">I&#8217;m using
            coverage 3.7.1 with python 2.7.3 on Red Hat 4.1.2 linux<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:12.0pt"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="font-size:12.0pt">I&#8217;ve been
            attempting to get coverage on the test code themselves. So
            far coverage<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:12.0pt">seems to
            ignore these files. <o:p>
            </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:12.0pt"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="font-size:12.0pt">It&#8217;s not
            obvious from the documentation how I can do this.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:12.0pt"><o:p>&nbsp;</o:p></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?<o:p></o:p></span></p>
      </div>
    </blockquote>
    Others have explained the "don't cover your tests" mindset.&nbsp; I like
    coverage-measuring my tests, for the simple reason that it gives me
    assurance that the tests are actually running.&nbsp; If you've ever
    copy-pasted a test to make a new similar test, but forgot to change
    the method name, you've had tests that don't run.&nbsp; Coverage can find
    those problems.<br>
    <br>
    You'll have to show us how you are running the tests.&nbsp; Coverage.py
    by default does not try to exclude test_*.py files.<br>
    <br>
    --Ned.<br>
    <blockquote
cite="mid:3353C423A8DAF84B850981194DB6210B09D8E9C6@PHX-EXRDA-S51.corp.ebay.com"
      type="cite">
      <div class="WordSection1">
        <p class="MsoNormal"><span style="font-size:12.0pt"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="font-size:12.0pt">Thanks<o:p></o:p></span></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
testing-in-python mailing list
<a class="moz-txt-link-abbreviated" href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a>
<a class="moz-txt-link-freetext" href="http://lists.idyll.org/listinfo/testing-in-python">http://lists.idyll.org/listinfo/testing-in-python</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>