Browse Source

Fix coverage environment in tox.

Currently, running tox -e coverage will result with error. Shamelessly
stolen commands from Nova project to fix that.

Change-Id: If09c65e895a31daac56afff846861815390a520c
changes/59/743159/1
Roman Dobosz 11 months ago
parent
commit
b53bcf946f
1 changed files with 8 additions and 3 deletions
  1. +8
    -3
      tox.ini

+ 8
- 3
tox.ini View File

@ -35,10 +35,15 @@ commands = {posargs}
[testenv:cover]
basepython = python3
setenv =
{[testenv]setenv}
PYTHON=coverage run --source kuryr_kubernetes --parallel-mode
commands =
rm -f .testrepository/times.dbm
python setup.py test --coverage --testr-args={posargs} \
--coverage-package-name=kuryr_kubernetes
coverage erase
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report
[testenv:docs]


Loading…
Cancel
Save