changeset 80396a0b74aa in cookiecutter:default
details: https://hg.tryton.org/cookiecutter?cmd=changeset&node=80396a0b74aa
description:
Add coverage to tox
issue7685
review370181002
diffstat:
{{ cookiecutter.module_name }}/tox.ini | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (16 lines):
diff -r 0d1d9ae640fd -r 80396a0b74aa {{ cookiecutter.module_name }}/tox.ini
--- a/{{ cookiecutter.module_name }}/tox.ini Sat Dec 11 17:57:34 2021 +0100
+++ b/{{ cookiecutter.module_name }}/tox.ini Mon Dec 13 23:09:13 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=.*/{{ cookiecutter.module_name }}/* setup.py test
+ coverage report --include=.*/{{ cookiecutter.module_name }}/*
--omit=*/tests/*
deps =
+ coverage
{py36,py37,py38,py39}-postgresql: psycopg2 >= 2.5
pypy3-postgresql: psycopg2cffi >= 2.5
py36-sqlite: sqlitebck