<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Eric, if by "make my own custom nose plugin," you mean, "submit a
patch to the nose plugin that implements the option to skip the
report," then yes, that sounds good! :)<br>
<br>
--Ned.<br>
<br>
<div class="moz-cite-prefix">On 8/2/14 8:36 PM, Eric Larson wrote:<br>
</div>
<blockquote
cite="mid:CAGu2niWUSbqh33FXuLXm0RPhQkAEFhts7jvSahDAnk0h1DZXAg@mail.gmail.com"
type="cite">
<div dir="ltr">Hey Ned,
<div><br>
</div>
<div>I might give that a shot. Your comment also got me thinking
that I could make my own custom nose plugin that utilizes your
module without making the report() command that the built-in
one does. That solution might work better for the projects I
have in mind -- but in either case, thanks for the quick
response!</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Eric</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Sat, Aug 2, 2014 at 4:07 PM, Ned
Batchelder <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:ned@nedbatchelder.com" target="_blank">ned@nedbatchelder.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div class=""> On 8/2/14 6:16 PM, Eric Larson wrote:<br>
<blockquote 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>
</div>
It sounds like you are using the coverage nose plugin. It
prints a textual report when the tests are finished.
<div class=""><br>
<blockquote 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>
</div>
I prefer to use coverage to run nosetests rather than to
run coverage within nose. The nose plugin seems to have
no option to skip the report. "coverage run" will run a
program under coverage measurement, then later (if you
wish), "coverage report" will report on the results.<br>
<blockquote type="cite">
<div dir="ltr">
<div><br>
</div>
<div>Cheers,</div>
<div>Eric</div>
<div><br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
testing-in-python mailing list
<a moz-do-not-send="true" href="mailto:testing-in-python@lists.idyll.org" target="_blank">testing-in-python@lists.idyll.org</a>
<a moz-do-not-send="true" href="http://lists.idyll.org/listinfo/testing-in-python" target="_blank">http://lists.idyll.org/listinfo/testing-in-python</a>
</pre>
</blockquote>
<br>
</div>
<br>
_______________________________________________<br>
testing-in-python mailing list<br>
<a moz-do-not-send="true"
href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a><br>
<a moz-do-not-send="true"
href="http://lists.idyll.org/listinfo/testing-in-python"
target="_blank">http://lists.idyll.org/listinfo/testing-in-python</a><br>
<br>
</blockquote>
</div>
<br>
</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>