diff --git a/tox.ini b/tox.ini index c905abc9dc4dc375d4b20fa87b35225360be3e63..f3e93ba745ee4aec42ed605b772557a29f9be4f3 100644 --- a/tox.ini +++ b/tox.ini @@ -1,26 +1,26 @@ [tox] requires = tox>4 -envlist=black,flake8,mypy,py3-{minimal,full} +envlist=black,flake8,mypy,py3-{minimal,full-cover} [testenv] extras = full: testing minimal: testing-minimal deps = - pytest-cov + cover: pytest-cov commands = - pytest \ - --doctest-modules \ - full: --cov={envsitepackagesdir}/swh/model --cov-branch {posargs} \ - full: {envsitepackagesdir}/swh/model - minimal: {envsitepackagesdir}/swh/model/tests/test_cli.py -m 'not requires_optional_deps' + pytest --doctest-modules \ + cover: --cov={envsitepackagesdir}/swh/model --cov-branch \ + full: {envsitepackagesdir}/swh/model \ + minimal: {envsitepackagesdir}/swh/model/tests/test_cli.py -m 'not requires_optional_deps' \ + {posargs} [testenv:py3] skip_install = true deps = tox commands = - tox run -e py3-full -- {posargs} + tox run -e py3-full-cover -- {posargs} tox run -e py3-minimal -- {posargs} [testenv:black]