Merge "Cleanup and fix Tacker coverage"

This commit is contained in:
Jenkins 2016-05-07 00:57:08 +00:00 committed by Gerrit Code Review
commit 3d40c322b5
2 changed files with 12 additions and 3 deletions

View File

@ -1,7 +1,7 @@
[run]
branch = True
source = neutron
omit = neutron/tests/*,neutron/plugins/cisco/test/*,neutron/openstack/*
source = tacker
omit = tacker/tests/*
[report]
ignore_errors = True

11
tox.ini
View File

@ -65,8 +65,17 @@ commands =
python setup.py build_sphinx
[testenv:cover]
# Also do not run test_coverage_ext tests while gathering coverage as those
# tests conflict with coverage.
# NOTE(sdague): this target does not use constraints because
# upstream infra does not yet support it. Once that's fixed, we can
# drop the install_command.
install_command = pip install -U --force-reinstall {opts} {packages}
commands =
python -m tacker.openstack.common.lockutils python setup.py testr --coverage --testr-args='{posargs}'
coverage erase
python setup.py testr --coverage --testr-args='{posargs}'
coverage combine
coverage html --include='tacker/*' -d covhtml -i
[testenv:venv]
commands = {posargs}