diff --git a/test-requirements.txt b/test-requirements.txt index 2717c199..82281ce0 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,7 +1,6 @@ mypy>=1.19.0 # MIT oslotest>=3.2.0 # Apache-2.0 testtools>=2.2.0 # MIT -coverage>=5.0 # Apache-2.0 jsonschema>=3.2.0 # MIT stestr>=2.0.0 # Apache-2.0 diff --git a/tox.ini b/tox.ini index 77277d46..d236eb6a 100644 --- a/tox.ini +++ b/tox.ini @@ -35,9 +35,12 @@ commands = {posargs} [testenv:cover] setenv = PYTHON=coverage run --source oslo_versionedobjects --parallel-mode +deps = + {[testenv]deps} + coverage>=5.0 # Apache-2.0 commands = coverage erase - stestr run {posargs} + {[testenv]commands} coverage combine coverage html -d cover coverage xml -o cover/coverage.xml