Add a unit test coverage tox job

This commit adds a new tox job for running the tempest unit tests with
coverage enabled.

Change-Id: I36b5390ffd241e08e40be2d4b92b9e91a71cdc9e
This commit is contained in:
Matthew Treinish 2014-01-07 21:54:55 +00:00
parent cb597066ea
commit b2f5cad4a0
2 changed files with 5 additions and 0 deletions

View File

@ -6,3 +6,4 @@ python-subunit
oslo.sphinx
mox>=0.5.3
mock>=1.0
coverage>=3.6

View File

@ -25,6 +25,10 @@ commands = python setup.py test --slowest --testr-arg='tempest\.tests {posargs}'
setenv = OS_TEST_PATH=./tempest/tests
commands = python setup.py test --slowest --testr-arg='tempest\.tests {posargs}'
[testenv:cover]
setenv = OS_TEST_PATH=./tempest/tests
commands = python setup.py testr --coverage --testr-arg='tempest\.tests {posargs}'
[testenv:all]
setenv = VIRTUAL_ENV={envdir}
commands =