diff --git a/.zuul.yaml b/.zuul.yaml index 802f5c77..ca2265f2 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -2,9 +2,10 @@ - project: check: jobs: - - tox-py37 - - tox-docs + - tox-py37 + - tox-cover + - tox-docs gate: jobs: - - tox-py37 - - tox-docs + - tox-py37 + - tox-docs diff --git a/tox.ini b/tox.ini index 60ab1f89..a9393ec9 100644 --- a/tox.ini +++ b/tox.ini @@ -7,9 +7,19 @@ deps = -r{toxinidir}/requirements.txt changedir = {toxinidir} commands = # simulate actual user interaction - pip install -e {toxinidir} + pip install -e . pytest -vv +[testenv:cover] +deps = + -r{toxinidir}/requirements.txt + pytest-cov +commands = + pip install -e . + pytest --cov=gnpy --cov=examples -v + coverage html -d cover + coverage xml -o cover/coverage.xml + [testenv:docs] deps = -r{toxinidir}/requirements.txt