-install_command = pip install -r requirements.txt -U {opts} {packages}
-commands = sh tools/pretty_tox.sh '{posargs}'
-deps = -r{toxinidir}/test-requirements.txt
-whitelist_externals = sh
-setenv =
- VIRTUAL_ENV={envdir}
+install_command = pip install -U {opts} {packages}
+setenv = VIRTUAL_ENV={envdir}
+ PYTHONDONTWRITEBYTECODE = 1
+ TESTS_DIR=./osm_mon/tests/unit/
+deps = -r{toxinidir}/requirements.txt
+ -r{toxinidir}/test-requirements.txt
+commands =
+ coverage erase
+
+[testenv:cover]
+basepython = python3
+deps = nose2
+ -r{toxinidir}/requirements.txt
+ -r{toxinidir}/test-requirements.txt
+commands =
+ coverage erase
+ nose2 -C --coverage osm_mon --plugin nose2.plugins.junitxml
+ coverage report --omit='*tests*'
+ coverage html -d ./cover --omit='*tests*'
+ coverage xml -o coverage.xml --omit='*tests*'
+
+[testenv:pylint]
+basepython = python3
+deps = pylint
+ -r{toxinidir}/requirements.txt
+ -r{toxinidir}/test-requirements.txt
+commands =
+ pylint -E osm_mon