Add a cover target to tox
This allows a post job to generate coverage data for ironic-lib. The package name needs to be overridden, as the default is taken to be ironic-lib, not ironic_lib. Omit openstack.common as we aren't responsible for testing that. Change-Id: I30a810effd918b8cb88485a527ecbfbc01dfb2e1
This commit is contained in:
parent
eb1277cc59
commit
d7d3d03ddf
6
tox.ini
6
tox.ini
@ -20,5 +20,11 @@ exclude = .venv,.tox,dist,doc,*.egg,.update-venv
|
||||
[testenv:pep8]
|
||||
commands = flake8 {posargs}
|
||||
|
||||
[testenv:cover]
|
||||
setenv = VIRTUALENV={envdir}
|
||||
LANGUAGE=en_US
|
||||
commands =
|
||||
python setup.py testr --coverage --coverage-package-name=ironic_lib --omit=ironic_lib/openstack/common/*.py {posargs}
|
||||
|
||||
[testenv:venv]
|
||||
commands = {posargs}
|
||||
|
Loading…
Reference in New Issue
Block a user