]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
tox: Omit tests and manage.py when running coverage tests
authorDamien Lespiau <damien.lespiau@intel.com>
Tue, 22 Sep 2015 14:59:33 +0000 (15:59 +0100)
committerStephen Finucane <stephen.finucane@intel.com>
Mon, 26 Oct 2015 20:43:07 +0000 (20:43 +0000)
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>
tox.ini

diff --git a/tox.ini b/tox.ini
index 891fc5ec2499d484181406a1e63967e4ecacdbfc..53d067e15f406d2c4e1a02ac0e6c1e1f22b7a54c 100644 (file)
--- 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