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:
JUN JIE NAN 2014-01-16 16:04:50 +08:00
parent 97dded3fb0
commit 5d82bfd973
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ commands = {posargs}
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}
commands =
python setup.py testr --coverage
python setup.py testr --coverage --testr-args='{posargs}'
[testenv:docs]
deps = -r{toxinidir}/requirements.txt