<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 8/2/14 6:16 PM, Eric Larson wrote:<br>
    <blockquote
cite="mid:CAGu2niV82UNM4k5hMoA_qjYmH-tDh=qsUjaPyuu105ioFb9ZJQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello,
        <div><br>
        </div>
        <div>I am using `nose` combined with `coverage` to test code
          coverage in several projects, and it is working well. However,
          I would like to be able to run nosetests and generate coverage
          information (i.e., the .coverage file) but *not* print the
          results of the coverage report to the terminal.</div>
        <div><br>
        </div>
      </div>
    </blockquote>
    It sounds like you are using the coverage nose plugin.&nbsp; It prints a
    textual report when the tests are finished.<br>
    <blockquote
cite="mid:CAGu2niV82UNM4k5hMoA_qjYmH-tDh=qsUjaPyuu105ioFb9ZJQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>In my case, each PR on Github automatically sends info to
          Coveralls, which generates nice reports, so I don't need to
          see it. Moreover, having the printout makes it more difficult
          to scroll to the points in the tests that might have failed.</div>
        <div><br>
        </div>
        <div>Is there a way to generate coverage information but not
          print it out?</div>
      </div>
    </blockquote>
    <br>
    I prefer to use coverage to run nosetests rather than to run
    coverage within nose.&nbsp; The nose plugin seems to have no option to
    skip the report.&nbsp; "coverage run" will run a program under coverage
    measurement, then later (if you wish), "coverage report" will report
    on the results.<br>
    <blockquote
cite="mid:CAGu2niV82UNM4k5hMoA_qjYmH-tDh=qsUjaPyuu105ioFb9ZJQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>Cheers,</div>
        <div>Eric</div>
        <div><br>
        </div>
      </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>