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] [run]
branch = True branch = True
source = jenkins
omit = omit =
.tox* .tox*
[report] [report]
ignore_errors = True
exclude_lines = exclude_lines =
pragma: no cover pragma: no cover
raise NotImplementedError raise NotImplementedError

4
.gitignore vendored
View File

@ -13,3 +13,7 @@
/.coverage /.coverage
/coverage*.xml /coverage*.xml
/junit*.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}' commands = python setup.py testr --slowest --testr-args='{posargs}'
[testenv:cover] [testenv:cover]
commands = commands = python setup.py test --coverage --testr-args='{posargs}'
coverage run -m discover
coverage report --omit="tests/*" --show-missing
coverage html --omit="tests/*" -d cover
[testenv:pep8] [testenv:pep8]
commands = flake8 commands = flake8