From abac0990fb9bbf97781aa088b04d761758180044 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Tue, 22 Sep 2015 15:59:33 +0100 Subject: [PATCH] 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 --- tox.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.47.3