Fix tox cover command
Add testr-args and coverage in tox cover command Change-Id: I69192c464a36b42d97559534d2df19f737d58407 Closes-bug: #1571366
This commit is contained in:
parent
47f40c7c60
commit
76cacceb60
4
tox.ini
4
tox.ini
|
@ -42,7 +42,9 @@ setenv = VIRTUAL_ENV={envdir}
|
||||||
# no file there. It can be removed when infra changes this.
|
# no file there. It can be removed when infra changes this.
|
||||||
install_command = pip install -U {opts} {packages}
|
install_command = pip install -U {opts} {packages}
|
||||||
commands =
|
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]
|
[testenv:checkconfig]
|
||||||
sitepackages = False
|
sitepackages = False
|
||||||
|
|
Loading…
Reference in New Issue