Fix coverage configuration and execution

A number of configuration errors prevent the successful creation of code
coverage. This corrects the .coveragerc source/omit setup and the tox
package name generation.

http://lists.openstack.org/pipermail/openstack-dev/2015-October/076193.html

Change-Id: Ia337cd014d4130f60a88fc988eabcc85d9142834
This commit is contained in:
Ronald Bradford 2015-10-02 11:34:54 -04:00
parent 0bc2d2393b
commit b5e355fcec
3 changed files with 6 additions and 4 deletions

View File

@ -1,7 +1,8 @@
[run]
branch = True
source = test
omit = test/tests/*,test/openstack/*
source = oslotest
omit = oslotest/tests/*
[report]
ignore-errors = True
ignore_errors = True
precision = 2

1
.gitignore vendored
View File

@ -23,6 +23,7 @@ pip-log.txt
# Unit test / coverage reports
.coverage
cover
.tox
nosetests.xml
.testrepository

View File

@ -15,7 +15,7 @@ commands = flake8
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}
commands =
python setup.py testr --coverage
python setup.py test --coverage --testr-args='{posargs}'
[testenv:venv]
commands = {posargs}