Use standard cover setup
Replace coverage testing with the normal way coverage is tested in OpenStack. Change-Id: Ic171e33a876029727b473481e56fdd94fce5ec6e
This commit is contained in:
parent
cf4f3d17ed
commit
1b08573a94
@ -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
4
.gitignore
vendored
@ -13,3 +13,7 @@
|
|||||||
/.coverage
|
/.coverage
|
||||||
/coverage*.xml
|
/coverage*.xml
|
||||||
/junit*.xml
|
/junit*.xml
|
||||||
|
|
||||||
|
# Unit test / coverage reports
|
||||||
|
cover/
|
||||||
|
|
||||||
|
5
tox.ini
5
tox.ini
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user