Report sent to coveralls includes library files
skytreader opened this issue · 1 comments
skytreader commented
Sorry if I'm missing something obvious with my set-up but I noticed that the coveralls report for my project includes library files.
See the Travis-CI output for my build goes as
$ nosetests --with-xcoverage
.......
Name Stmts Miss Cover Missing
-------------------------------------
titan 61 3 95% 58, 77, 87
----------------------------------------------------------------------
Ran 7 tests in 0.807s
OK
But at coveralls I only have 27.61% coverage. The culprit is that files such as /home/travis/virtualenv/python3.2.5/lib/python3.2/site-packages/nose/*py
(as well as other packages) have been included.
How do I uninclude library files?
skytreader commented
Apparently, this is a problem with nose
and not with the Coveralls API or the library. To get accurate coverage and still be able to use nose
, have a .coveragerc
file at the root of your repo containing the following:
[report]
omit =
*/python?.?/*
*/site-packages/nose/*
Add necessary patterns as needed.