Merge "Improving cover testenv"
This commit is contained in:
commit
276cff6a95
7
tox.ini
7
tox.ini
@ -8,6 +8,8 @@ setenv =
|
||||
BRANCH_NAME=master
|
||||
CLIENT_NAME=oslo.vmware
|
||||
install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
||||
whitelist_externals = find
|
||||
rm
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
||||
|
||||
@ -31,8 +33,11 @@ commands = python setup.py build_sphinx
|
||||
|
||||
[testenv:cover]
|
||||
commands =
|
||||
coverage erase
|
||||
find . -type f -name "*.pyc" -delete
|
||||
python setup.py test --coverage --coverage-package-name=oslo_vmware --testr-args='{posargs}'
|
||||
|
||||
coverage report
|
||||
|
||||
[testenv:venv]
|
||||
commands = {posargs}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user