Files
instack-undercloud/tox.ini
Ben Nemec e163633262 Enable coverage testing
This is useful to see how we're doing on unit testing.

93%, for the record. :-)

Change-Id: If5301b3205818dbba49c6a82ce6f5135384d0b27
2015-11-30 22:56:47 +00:00

38 lines
833 B
INI

[tox]
minversion = 1.6
skipsdist = True
envlist = py34,py27,pep8
[testenv]
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
[testenv:venv]
commands = {posargs}
[testenv:docs]
commands = python setup.py build_sphinx
[testenv:pep8]
deps = bashate
flake8
whitelist_externals =
bash
commands =
flake8
bash -c "find scripts -type f | xargs bashate -v -iE006"
[testenv:cover]
commands = python setup.py test --coverage --coverage-package-name=instack_undercloud --testr-args='{posargs}'
[flake8]
ignore = H803
show-source = True
exclude = .tox,dist,doc,*.egg,build
[testenv:genconfig]
commands = oslo-config-generator --config-file config-generator/undercloud.conf