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>
This commit is contained in:
parent
e17ecd5b45
commit
cae8019e44
@ -1,4 +1,6 @@
|
|||||||
[run]
|
[run]
|
||||||
|
branch = True
|
||||||
|
source = kuryr
|
||||||
omit = kuryr/tests/*
|
omit = kuryr/tests/*
|
||||||
|
|
||||||
[report]
|
[report]
|
||||||
|
5
tox.ini
5
tox.ini
@ -42,8 +42,9 @@ commands = flake8
|
|||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
commands =
|
commands =
|
||||||
python setup.py testr --coverage --testr-args='{posargs}'
|
python setup.py test --coverage --testr-args='{posargs}' \
|
||||||
|
--coverage-package-name=kuryr.lib
|
||||||
coverage report
|
coverage report
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
|
Loading…
Reference in New Issue
Block a user