Update tox.ini file for coverage

1. Set basepython as 'python2.7'
2. Exclude tests files from coverage

Change-Id: I72834f76dd538f851cb457f2a4bf3c2b13ff70e7
This commit is contained in:
Mike Fedosin 2017-05-08 15:31:59 +03:00
parent c9149177cb
commit 025e6fc726
1 changed files with 2 additions and 1 deletions

View File

@ -32,10 +32,11 @@ commands =
bandit -c bandit.yaml -r glare -n5 -p gate bandit -c bandit.yaml -r glare -n5 -p gate
[testenv:cover] [testenv:cover]
basepython = python2.7
setenv = VIRTUAL_ENV={envdir} setenv = VIRTUAL_ENV={envdir}
commands = commands =
coverage erase coverage erase
python setup.py testr --coverage --testr-args='^(?!.*test.*coverage).*$' python setup.py testr --coverage --testr-args='^(?!.*test.*coverage).*$' --omit="*/test*"
[testenv:venv] [testenv:venv]
commands = {posargs} commands = {posargs}