[TIP] Coverage + nose, suppress printing of coverage information

Eric Larson larson.eric.d at gmail.com
Sat Aug 2 15:16:29 PDT 2014


Hello,

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.

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.

Is there a way to generate coverage information but not print it out?

Cheers,
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20140802/6be54b74/attachment.htm>


More information about the testing-in-python mailing list