X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=tox.ini;fp=tox.ini;h=b5c0df0357095352f95fdd22c503f9a7afa3536b;hb=c2a005ed542b4bc3bdb7bd47bf3b34b1110e1e0d;hp=03f2d279079b86f389b66cc367413b3c964aa9b9;hpb=416a753c60f1ba9545f4aa36fb45e1730046e4b2;p=osm%2FMON.git diff --git a/tox.ini b/tox.ini index 03f2d27..b5c0df0 100644 --- a/tox.ini +++ b/tox.ini @@ -25,7 +25,7 @@ # test suite on all supported python versions. To use it, "pip install tox" # and then run "tox" from this directory. [tox] -envlist = py3, flake8, pylint, cover +envlist = cover, py3, flake8, pylint [testenv] @@ -41,12 +41,12 @@ commands = [testenv:cover] basepython = python3 -setenv = VIRTUAL_ENV={envdir} - PYTHON=coverage run --source osm_mon --omit='*tests*' --parallel-mode +deps = nose2 + -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt commands = coverage erase - stestr run {posargs} - coverage combine + nose2 -C --coverage osm_mon --plugin nose2.plugins.junitxml coverage report --omit='*tests*' coverage html -d ./cover --omit='*tests*' coverage xml -o ./cover/coverage.xml --omit='*tests*'