# 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]
[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*'
+ coverage xml -o coverage.xml --omit='*tests*'
[testenv:pylint]
basepython = python3