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:
Al Bailey 2018-12-19 15:22:10 -06:00
parent 299e6c375b
commit 9e31cab1d4
3 changed files with 11 additions and 12 deletions

1
.gitignore vendored
View File

@ -17,6 +17,7 @@ ChangeLog
_build
build
cover
coverage.xml
develop-eggs
dist
eggs

View File

@ -62,4 +62,5 @@ commands =
coverage erase
python setup.py testr --coverage --testr-args='{posargs}'
coverage xml
coverage report

View File

@ -147,20 +147,17 @@ commands =
[testenv:cover]
basepython = python2.7
deps = {[testenv]deps}
-e{[tox]stxdir}/stx-update/tsconfig/tsconfig
-e{[tox]stxdir}/stx-config/configutilities/configutilities
-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
setenv = {[testenv]setenv}
PYTHON=coverage run --parallel-mode
commands =
find . -type f -name "*.pyc" -delete
find . -type f -name ".coverage\.*" -delete
coverage erase
python tools/patch_tox_venv.py
python setup.py testr --coverage --testr-args='{posargs}'
coverage xml
{[testenv]commands}
coverage erase
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report
[testenv:pip-missing-reqs]
# do not install test-requirements as that will pollute the virtualenv for