Fix tox cover command

Add testr-args and coverage in tox cover command

Change-Id: I69192c464a36b42d97559534d2df19f737d58407
Closes-bug: #1571366
This commit is contained in:
Alexey Galkin 2016-04-17 19:59:30 +03:00
parent 47f40c7c60
commit 76cacceb60
1 changed files with 3 additions and 1 deletions

View File

@ -42,7 +42,9 @@ setenv = VIRTUAL_ENV={envdir}
# no file there. It can be removed when infra changes this.
install_command = pip install -U {opts} {packages}
commands =
python setup.py testr --coverage {posargs}
coverage erase
python setup.py testr --coverage --omit='*test*' --testr-args='{posargs}'
coverage report --omit='*test*'
[testenv:checkconfig]
sitepackages = False