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:
parent
fb2da85370
commit
51dc8fb373
6
tox.ini
6
tox.ini
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue