Update tox.ini

* Don't write python bytecode while testing
* Remove previous coverage data before generating new

Change-Id: I3dcd61ab5da31270612d1a8a7287037620185d2a
This commit is contained in:
Alexey Galkin 2016-09-06 15:57:16 +03:00
parent fb2da85370
commit 51dc8fb373
1 changed files with 5 additions and 1 deletions

View File

@ -5,6 +5,8 @@ skipsdist = True
[testenv]
setenv = VIRTUAL_ENV={envdir}
PYTHONDONTWRITEBYTECODE = 1
LANGUAGE=en_US
usedevelop = True
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
deps = -r{toxinidir}/test-requirements.txt
@ -31,7 +33,9 @@ commands =
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}
commands = python setup.py testr --coverage --testr-args='^(?!.*test.*coverage).*$'
commands =
coverage erase
python setup.py testr --coverage --testr-args='^(?!.*test.*coverage).*$'
[testenv:venv]
commands = {posargs}