Fix coverage environment in tox.
Currently, running tox -e coverage will result with error. Shamelessly
stolen commands from Nova project to fix that.
@@ -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]
