Fixing up tox -e cover for stx-config
In the environments that support tox -e py27 those tox.ini will also work with tox -e cover Currently sysinv is at 34% Currently controllerconfig is at 6% Story: 2004515 Task: 28605 Change-Id: I9064ef7a6ca50dec749a2a5b34a03b0fd2283b4e Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
This commit is contained in:
parent
299e6c375b
commit
9e31cab1d4
|
@ -17,6 +17,7 @@ ChangeLog
|
||||||
_build
|
_build
|
||||||
build
|
build
|
||||||
cover
|
cover
|
||||||
|
coverage.xml
|
||||||
develop-eggs
|
develop-eggs
|
||||||
dist
|
dist
|
||||||
eggs
|
eggs
|
||||||
|
|
|
@ -62,4 +62,5 @@ commands =
|
||||||
coverage erase
|
coverage erase
|
||||||
python setup.py testr --coverage --testr-args='{posargs}'
|
python setup.py testr --coverage --testr-args='{posargs}'
|
||||||
coverage xml
|
coverage xml
|
||||||
|
coverage report
|
||||||
|
|
||||||
|
|
|
@ -147,20 +147,17 @@ commands =
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
basepython = python2.7
|
basepython = python2.7
|
||||||
deps = {[testenv]deps}
|
deps = {[testenv]deps}
|
||||||
-e{[tox]stxdir}/stx-update/tsconfig/tsconfig
|
setenv = {[testenv]setenv}
|
||||||
-e{[tox]stxdir}/stx-config/configutilities/configutilities
|
PYTHON=coverage run --parallel-mode
|
||||||
-e{[tox]stxdir}/stx-fault/fm-api
|
|
||||||
-e{[tox]stxdir}/stx-config/controllerconfig/controllerconfig
|
|
||||||
-e{[tox]stxdir}/stx-update/cgcs-patch/cgcs-patch
|
|
||||||
-e{[tox]stxdir}/stx-integ/utilities/platform-util/platform-util
|
|
||||||
|
|
||||||
commands =
|
commands =
|
||||||
find . -type f -name "*.pyc" -delete
|
{[testenv]commands}
|
||||||
find . -type f -name ".coverage\.*" -delete
|
|
||||||
coverage erase
|
coverage erase
|
||||||
python tools/patch_tox_venv.py
|
stestr run {posargs}
|
||||||
python setup.py testr --coverage --testr-args='{posargs}'
|
coverage combine
|
||||||
coverage xml
|
coverage html -d cover
|
||||||
|
coverage xml -o cover/coverage.xml
|
||||||
|
coverage report
|
||||||
|
|
||||||
[testenv:pip-missing-reqs]
|
[testenv:pip-missing-reqs]
|
||||||
# do not install test-requirements as that will pollute the virtualenv for
|
# do not install test-requirements as that will pollute the virtualenv for
|
||||||
|
|
Loading…
Reference in New Issue