Add in tox -s cover support

Enable us to do code coverage tests

Change-Id: I586c0a64d2a351b38475afbae2c49d08cb5b5d55
This commit is contained in:
Gary Kotton 2017-03-01 02:26:55 -08:00
parent 3e5f2e324a
commit 34a36b9426
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,9 @@
[run]
branch = True
source = vmware_nsxlib
omit = vmware_nsxlib/tests/*
[report]
ignore_errors = True
[report]
ignore_errors = True

View File

@ -69,9 +69,8 @@ deps = -r{toxinidir}/test-requirements.txt
commands = bandit -r vmware_nsxlib -n 5 -ll
[testenv:cover]
basepython = python2.7
commands =
python setup.py testr --coverage --testr-args='{posargs}'
python setup.py test --coverage --coverage-package-name=vmware_nsxlib --testr-args='{posargs}'
coverage report
[testenv:venv]