From e2befe55725f29b5996ff7f5ff650ff805a7cd64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 13 Dec 2021 23:10:13 +0100 Subject: [PATCH] Add coverage to tox issue7685 review51501002 --- tox.ini | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 67e93ea73b..e7efa18fcf 100644 --- a/tox.ini +++ b/tox.ini @@ -2,8 +2,10 @@ envlist = py36,py37,py38,py39,pypy3 [testenv] -commands = {envpython} setup.py test -deps = +commands = + coverage run setup.py test + coverage report --include=./proteus/* --omit=*/tests/* +deps = coverage setenv = TRYTOND_DATABASE_URI={env:TRYTOND_DATBASE_URI:sqlite://} DB_NAME={env:DB_NAME::memory:}