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
|
BRANCH_NAME=master
|
||||||
CLIENT_NAME=oslo.vmware
|
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}
|
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
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
||||||
|
|
||||||
@ -31,8 +33,11 @@ commands = python setup.py build_sphinx
|
|||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
commands =
|
commands =
|
||||||
|
coverage erase
|
||||||
|
find . -type f -name "*.pyc" -delete
|
||||||
python setup.py test --coverage --coverage-package-name=oslo_vmware --testr-args='{posargs}'
|
python setup.py test --coverage --coverage-package-name=oslo_vmware --testr-args='{posargs}'
|
||||||
|
coverage report
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user