Merge "Add a cover target to tox"

This commit is contained in:
Jenkins 2015-10-01 06:04:50 +00:00 committed by Gerrit Code Review
commit 86e25fc1b2

View File

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