Nosetests provide a plugin for coverage measurement of your code:
$ nosetests --with-coverage --cover-package=<your_package_name>
However, nosetests gathers coverage for all executed code, ignoring the
source config option in
This well make
coveralls report unnecessary files, which can be inconvenient. To workaround this issue, you can use the
omit option in your
.coveragerc to specify a list of filename patterns to leave out of reporting.
[report] omit = */venv/* */my_project/ignorable_file.py */test_script.py
Note, that native
py.test are not affected by this problem and do not require this workaround.