Fixing jenkins failing on coverage reporting
Coverage combine deletes reports and thus jenkins failed saying `no data to report`, this change fixes it. Change-Id: Ia95ec755513d4382f9ad945e9688836445aee4d3
This commit is contained in:
3
.coveragerc
Normal file
3
.coveragerc
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[report]
|
||||||
|
include = bandit/*
|
||||||
|
omit = bandit/tests/functional/*
|
6
tox.ini
6
tox.ini
@@ -10,10 +10,10 @@ setenv =
|
|||||||
VIRTUAL_ENV={envdir}
|
VIRTUAL_ENV={envdir}
|
||||||
deps = -r{toxinidir}/requirements.txt
|
deps = -r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
commands = python setup.py testr --coverage --slowest --testr-args='{posargs}'
|
commands =
|
||||||
coverage combine
|
|
||||||
coverage report -m
|
|
||||||
coverage erase
|
coverage erase
|
||||||
|
python setup.py testr --coverage --slowest --testr-args='{posargs}'
|
||||||
|
coverage report -m
|
||||||
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
||||||
|
|
||||||
[testenv:debug]
|
[testenv:debug]
|
||||||
|
Reference in New Issue
Block a user