Having the tests in the coverage reports artifically improve the
coverage percentage, because every line in tests is being run.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Stephen Finucane <stephen.finucane@intel.com>
DJANGO_SETTINGS_MODULE = patchwork.settings.dev
commands =
coverage erase
- coverage run --omit=*tox* --branch {toxinidir}/manage.py test patchwork
+ coverage run --omit=*tox*,patchwork/tests/*.py,manage.py --branch \
+ {toxinidir}/manage.py test patchwork
coverage report -m