changeset 0a186f042b47 in tryton:default
details: https://hg.tryton.org/tryton?cmd=changeset&node=0a186f042b47
description:
        Add coverage to tox

        issue7685
        review51501002
diffstat:

 tox.ini |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r dde55da3a6ba -r 0a186f042b47 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,5 +2,9 @@
 envlist = py36,py37,py38,py39
 
 [testenv]
-commands = {envpython} setup.py test
+commands =
+    coverage run setup.py test
+    coverage report --include=./tryton/* --omit=*/tests/*
+deps =
+    coverage
 install_command = pip install --pre --find-links 
https://trydevpi.tryton.org/?local_version={env:CI_JOB_ID:{env:CI_BUILD_NUMBER:}.{env:CI_JOB_NUMBER:}}
 {opts} {packages}

Reply via email to