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]
|
||||
branch = True
|
||||
source = jenkins
|
||||
omit =
|
||||
.tox*
|
||||
|
||||
[report]
|
||||
ignore_errors = True
|
||||
exclude_lines =
|
||||
pragma: no cover
|
||||
raise NotImplementedError
|
||||
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -13,3 +13,7 @@
|
||||
/.coverage
|
||||
/coverage*.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}'
|
||||
|
||||
[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
|
||||
|
Loading…
Reference in New Issue
Block a user