From: Damien Lespiau Date: Tue, 22 Sep 2015 14:59:33 +0000 (+0100) Subject: tox: Omit tests and manage.py when running coverage tests X-Git-Tag: v1.1.0~211 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=abac0990fb9bbf97781aa088b04d761758180044;p=thirdparty%2Fpatchwork.git tox: Omit tests and manage.py when running coverage tests 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 Reviewed-by: Stephen Finucane --- diff --git a/tox.ini b/tox.ini index 891fc5ec..53d067e1 100644 --- a/tox.ini +++ b/tox.ini @@ -44,5 +44,6 @@ setenv = 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