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:
Kurt Taylor 2015-10-06 09:01:26 -05:00
parent 6631b8ffab
commit 9fbd91b9d1

View File

@ -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 =