<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Miriam, thanks so much for patching this, it's been a long-standing
    issue.&nbsp; Could you post it to the nose users list
    (<a class="moz-txt-link-abbreviated" href="mailto:nose-users@googlegroups.com">nose-users@googlegroups.com</a>), that's the best way to get it into
    the official release.<br>
    <br>
    --Ned.<br>
    <br>
    On 6/9/2011 8:07 AM, Goldenberg, Miriam wrote:
    <blockquote
      cite="mid:7913DB5FA7D3F643A2C10A4A8E2DFAF45635749613@ILMA1.IL.NDS.COM"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 12 (filtered
        medium)">
      <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        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;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</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="Section1">
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Hi,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">We&#8217;ve
            found how to fix this problem: please find attached the file
            <b>cover.py</b> (from &lt;<b><i>nose-root&gt;/nose/plugins</i></b>
            and <b><i>&lt;nose-root&gt;/build/lib/nose/plugins</i></b>),
            where a generation of the coverage HTML report by &#8220;nose&#8221;
            just commented and replaced by a call to the
            <b>coverage.html_report(&#8230;) </b>method. This solved the
            problem. So, could you please include this patch into a next
            official release of the &#8220;nose&#8221;?<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Regards,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Miriam<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
        <div>
          <div style="border-right: medium none; border-width: 1pt
            medium medium; border-style: solid none none; border-color:
            rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color;
            padding: 3pt 0cm 0cm;">
            <p class="MsoNormal"><b><span style="font-size: 10pt;
                  font-family:
                  &quot;Tahoma&quot;,&quot;sans-serif&quot;;">From:</span></b><span
                style="font-size: 10pt; font-family:
                &quot;Tahoma&quot;,&quot;sans-serif&quot;;"> Goldenberg,
                Miriam
                <br>
                <b>Sent:</b> Monday, June 06, 2011 6:24 PM<br>
                <b>To:</b> '<a class="moz-txt-link-abbreviated" href="mailto:testing-in-python-request@lists.idyll.org">testing-in-python-request@lists.idyll.org</a>'<br>
                <b>Subject:</b> Nose run doesn not generate *cover
                files, so HTML generation fails<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">confirm
          8e0434042d71cd815dd36b8cea43e1548bca844f<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">Hi,<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">When I run Nose unit tests with the
          coverage arguments: &#8220;&#8212;with-coverage, --cover-erase,
          --cover-package,[&#8230;], --cover-inclusive, --cover-html&#8221;, I have
          the following problem: if I specify a package name<span
            style="color: rgb(54, 95, 145);">: &nbsp;--cover-package,[&#8216;<b>mypackage</b>&#8217;],</span>
          then *cover files are not generated and this causes the HTML
          generation step to fail.
          <o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">But if I specify <b>any</b> file name
          (existing in the project)<span style="color: rgb(54, 95,
            145);">: &nbsp;--cover-package,[&#8216;<b>myfile.py</b>&#8217;],</span> then
          Nose finds
          <b>all</b> unit tests in the project, generates all *cover
          files and the HTML report as well. The specified file (<span
            style="color: rgb(54, 95, 145);">&#8216;<b>myfile.py</b>&#8217;)
          </span>could be chosen from any project package &#8211; anyway all
          tests run and report successfully.<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">Could you please advice? I use Python 2.7,
          Nose 0.1.11, PyMock 1.0.5.1, Coverage 3.4.win32-py2.7.<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">Thank you,<o:p></o:p></p>
        <p class="MsoNormal">Miriam<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
      </div>
      <br>
      <hr>
      <font color="Gray" face="Arial" size="1">This message is
        confidential and intended only for the addressee. If you have
        received this message in error, please immediately notify the
        <a class="moz-txt-link-abbreviated" href="mailto:postmaster@nds.com">postmaster@nds.com</a> and delete it from your system as well as any
        copies. The content of e-mails as well as traffic data may be
        monitored by NDS for employment and security purposes.<br>
        To protect the environment please do not print this e-mail
        unless necessary.<br>
        <br>
        An NDS Group Limited company. <a class="moz-txt-link-abbreviated" href="http://www.nds.com">www.nds.com</a><br>
      </font>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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>
  </body>
</html>