Enable openstack-cover-jobs in zuul check for cyborg
In this U version, Improve UT for important Cyborg module is an important task. It is necessary to add openstack-cover-jobs to zuul. This way we can easily view the unit test coverage of each file. such as nova: https://github.com/openstack/nova/blob/master/.zuul.yaml#L374 Change-Id: I854a51a2105628c5e5e9c30282e0f4b259c33ed3
This commit is contained in:
parent
a835765471
commit
9dcbbb33bc
2
.gitignore
vendored
2
.gitignore
vendored
@ -31,6 +31,8 @@ doc/build/*
|
|||||||
doc/source/api/*
|
doc/source/api/*
|
||||||
api-ref/build/*
|
api-ref/build/*
|
||||||
|
|
||||||
|
cover
|
||||||
|
|
||||||
AUTHORS
|
AUTHORS
|
||||||
Authors
|
Authors
|
||||||
ChangeLog
|
ChangeLog
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
- project:
|
- project:
|
||||||
templates:
|
templates:
|
||||||
- openstack-python-jobs
|
- openstack-python-jobs
|
||||||
|
- openstack-cover-jobs
|
||||||
- check-requirements
|
- check-requirements
|
||||||
- release-notes-jobs-python3
|
- release-notes-jobs-python3
|
||||||
- openstack-python3-train-jobs
|
- openstack-python3-train-jobs
|
||||||
|
3
tox.ini
3
tox.ini
@ -66,12 +66,13 @@ commands = {posargs}
|
|||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
setenv =
|
setenv =
|
||||||
PYTHON=coverage run --source $project --parallel-mode
|
PYTHON=coverage run --source cyborg --parallel-mode
|
||||||
commands =
|
commands =
|
||||||
stestr run {posargs}
|
stestr run {posargs}
|
||||||
coverage combine
|
coverage combine
|
||||||
coverage html -d cover
|
coverage html -d cover
|
||||||
coverage xml -o cover/coverage.xml
|
coverage xml -o cover/coverage.xml
|
||||||
|
coverage report
|
||||||
|
|
||||||
[doc8]
|
[doc8]
|
||||||
ignore-path = .venv,.git,.tox,*cyborg/locale*,*lib/python*,*cyborg.egg*,api-ref/build,doc/build,doc/source/contributor/api
|
ignore-path = .venv,.git,.tox,*cyborg/locale*,*lib/python*,*cyborg.egg*,api-ref/build,doc/build,doc/source/contributor/api
|
||||||
|
Loading…
Reference in New Issue
Block a user