-# for testing with other python versions
-commands = py.test --ignore modules/ --ignore tests/charms/ --tb native -ra -v -s -n auto -k 'not integration' -m 'not serial' {posargs}
-passenv =
- HOME
- VCA_PATH
- VCA_HOST
- VCA_PORT
- VCA_USER
- VCA_SECRET
- LXD_HOST
- LXD_SECRET
- VCA_CACERT
- # These are needed so executing `charm build` succeeds
- TERM
- TERMINFO
+[testenv:cover]
+basepython = python3
+deps =
+ nose2
+ -rrequirements.txt
+ -rtest-requirements.txt
+commands =
+ coverage erase
+ nose2 -C --coverage n2vc --plugin nose2.plugins.junitxml -s n2vc
+ coverage report --omit='*n2vc/tests*'
+ coverage html -d ./cover --omit='*n2vc/tests*'
+ coverage xml -o coverage.xml --omit='*n2vc/tests*'
+
+[testenv:pylint]
+basepython = python3