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:
parent
cb597066ea
commit
b2f5cad4a0
@ -6,3 +6,4 @@ python-subunit
|
||||
oslo.sphinx
|
||||
mox>=0.5.3
|
||||
mock>=1.0
|
||||
coverage>=3.6
|
||||
|
4
tox.ini
4
tox.ini
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user