changeset 7c83af34d81a in modules/account_invoice_secondary_unit:default
details: 
https://hg.tryton.org/modules/account_invoice_secondary_unit?cmd=changeset&node=7c83af34d81a
description:
        Add coverage to tox

        issue7685
        review51501002
diffstat:

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

diffs (16 lines):

diff -r f196a6188bd4 -r 7c83af34d81a tox.ini
--- a/tox.ini   Sat Dec 11 17:58:41 2021 +0100
+++ b/tox.ini   Mon Dec 13 23:10:08 2021 +0100
@@ -2,8 +2,11 @@
 envlist = {py36,py37,py38,py39}-{sqlite,postgresql},pypy3-{sqlite,postgresql}
 
 [testenv]
-commands = {envpython} setup.py test
+commands =
+    coverage run --include=.*/account_invoice_secondary_unit/* setup.py test
+    coverage report --include=.*/account_invoice_secondary_unit/* 
--omit=*/tests/*
 deps =
+    coverage
     {py36,py37,py38,py39}-postgresql: psycopg2 >= 2.5
     pypy3-postgresql: psycopg2cffi >= 2.5
     py36-sqlite: sqlitebck

Reply via email to