[PATCH] tox: Omit tests and manage.py when running coverage tests
Damien Lespiau
damien.lespiau at intel.com
Wed Sep 23 00:59:33 AEST 2015
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 at intel.com>
---
tox.ini | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tox.ini b/tox.ini
index 891fc5e..53d067e 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.1.0
More information about the Patchwork
mailing list