Add coverage target to tox.ini
This creates a seperate target splitting out the coverage from the other tests. The test directory and project names are different, overriding with passed package name. Since testr is not used, coverage is called separately. Change-Id: I32c132414a8b7e702b65617b95236397f4a471c2
This commit is contained in:
parent
6631b8ffab
commit
9fbd91b9d1
5
tox.ini
5
tox.ini
@ -16,6 +16,11 @@ passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
||||
[testenv:venv]
|
||||
commands = {posargs}
|
||||
|
||||
[testenv:cover]
|
||||
commands =
|
||||
coverage run --branch --include "ironic_inspector*" -m unittest discover ironic_inspector.test
|
||||
coverage report -m
|
||||
|
||||
[testenv:pep8]
|
||||
basepython = python2.7
|
||||
commands =
|
||||
|
Loading…
Reference in New Issue
Block a user