@ -7,7 +7,7 @@ skipsdist = True
setenv = VIRTUAL_ENV={envdir}
PYTHONDONTWRITEBYTECODE = 1
LANGUAGE = en_US
# .testr.conf uses TESTS_DIR
# .s testr.conf uses TESTS_DIR
TESTS_DIR = ./ironicclient/tests/unit
usedevelop = True
install_command =
@ -27,11 +27,14 @@ commands =
doc8 doc/source CONTRIBUTING.rst README.rst
[testenv:cover]
setenv = VIRTUAL_ENV={envdir }
LANGUAGE = en_US
setenv = {[testenv]setenv }
PYTHON = coverage run --source ironicclient --omit='*tests*' --parallel-mode
commands =
coverage erase
python setup.py testr --coverage --testr-args = '{posargs}'
coverage erase
ostestr {posargs}
coverage combine
coverage report --omit = '*tests*'
coverage html -d ./cover --omit = '*tests*'
[testenv:venv]
commands = {posargs}