changeset 9d71f1169457 in trytond-gis:default
details: https://hg.tryton.org/trytond-gis?cmd=changeset&node=9d71f1169457
description:
Add coverage to tox
issue7685
review51501002
diffstat:
tox.ini | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r 54806535b1d7 -r 9d71f1169457 tox.ini
--- a/tox.ini Sat Dec 11 17:58:45 2021 +0100
+++ b/tox.ini Mon Dec 13 23:10:13 2021 +0100
@@ -2,7 +2,10 @@
envlist = py36,py37,py38,py39
[testenv]
-commands = {envpython} setup.py test
+commands =
+ coverage run setup.py test
+ coverage report --include=./trytond_gis/* --omit=*/tests/*
+deps = coverage
setenv =
TRYTOND_DATABASE_URI={env:POSTGIS_URI:postgis://}
DB_NAME={env:POSTGIS_NAME:test}