Added testr-args option support for tox coverage
So we can check coverage for some test cases like: tox -e cover -- heat.tests.test_sqlalchemy_api Change-Id: Icd721fbced34b4f6b9e550d927d8fcc4c6439ff8
This commit is contained in:
parent
97dded3fb0
commit
5d82bfd973
2
tox.ini
2
tox.ini
@ -23,7 +23,7 @@ commands = {posargs}
|
|||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
commands =
|
commands =
|
||||||
python setup.py testr --coverage
|
python setup.py testr --coverage --testr-args='{posargs}'
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
deps = -r{toxinidir}/requirements.txt
|
deps = -r{toxinidir}/requirements.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user