Use standard cover setup

Replace coverage testing with the normal way coverage is tested in
OpenStack.

Change-Id: Ic171e33a876029727b473481e56fdd94fce5ec6e
This commit is contained in:
Andreas Jaeger 2016-12-20 22:12:47 +01:00
parent cf4f3d17ed
commit 1b08573a94
3 changed files with 7 additions and 4 deletions

View File

@ -1,9 +1,11 @@
[run]
branch = True
source = jenkins
omit =
.tox*
[report]
ignore_errors = True
exclude_lines =
pragma: no cover
raise NotImplementedError

4
.gitignore vendored
View File

@ -13,3 +13,7 @@
/.coverage
/coverage*.xml
/junit*.xml
# Unit test / coverage reports
cover/

View File

@ -11,10 +11,7 @@ deps = -r{toxinidir}/test-requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
[testenv:cover]
commands =
coverage run -m discover
coverage report --omit="tests/*" --show-missing
coverage html --omit="tests/*" -d cover
commands = python setup.py test --coverage --testr-args='{posargs}'
[testenv:pep8]
commands = flake8