Cleanup and fix Tacker coverage

Test classes were being accounted for during coverage, they
are now ignored for more accurate coverage metrics. Remove
references to neutron in .coveragerc. Fix tox.ini coverage

Co-Authored-By: Larry Rensing <>
Co-Authored-By: Sridhar Ramaswamy <>

Change-Id: I92d50592a5ba43f68554aa933ab8582897b58b43
This commit is contained in:
Larry Rensing 2016-04-20 17:36:35 +00:00 committed by Sridhar Ramaswamy
parent bf2bc85a46
commit cddc6d5745
2 changed files with 12 additions and 3 deletions

View File

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

View File

@ -54,8 +54,17 @@ commands =
python build_sphinx
# 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 testr --coverage --testr-args='{posargs}'
coverage erase
python testr --coverage --testr-args='{posargs}'
coverage combine
coverage html --include='tacker/*' -d covhtml -i
commands = {posargs}