Browse Source

tox: fix coverage call

We changed the pypi package name to kuryr-lib so we need to give a hint
to testr so it knows where to find the module for coverage.

Closes-bug: #1628843
Change-Id: Ic1a8576a4ced2615152889b7ab742bb00a4ce565
Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
changes/05/379305/3
Antoni Segura Puimedon 6 years ago
parent
commit
cae8019e44
No known key found for this signature in database
GPG Key ID: 2329618D2967720A
  1. 2
      .coveragerc
  2. 5
      tox.ini

2
.coveragerc

@ -1,4 +1,6 @@
[run]
branch = True
source = kuryr
omit = kuryr/tests/*
[report]

5
tox.ini

@ -42,8 +42,9 @@ commands = flake8
commands = {posargs}
[testenv:cover]
commands =
python setup.py testr --coverage --testr-args='{posargs}'
commands =
python setup.py test --coverage --testr-args='{posargs}' \
--coverage-package-name=kuryr.lib
coverage report
[testenv:docs]

Loading…
Cancel
Save