summaryrefslogtreecommitdiffstats
path: root/vio/tox.ini
diff options
context:
space:
mode:
authorBin Sun <bins@vmware.com>2017-09-18 14:41:45 +0800
committerBin Sun <bins@vmware.com>2017-09-18 14:42:10 +0800
commite388cd36954e84ca1bf912ac09ec982c0a2f2e53 (patch)
tree47284fcdd8402a05f7f50be37af8eb05ac6fdf91 /vio/tox.ini
parent3280c32a96f7f7cfc54e6d80971b1e637439bd70 (diff)
Add setting-coverage into VIO plugin for UT
also write some cases to increase the code coverage to 50% Change-Id: I032c713d9811f123b74717742e04b55e334ab4e8 Issue-Id: MULTICLOUD-91 Signed-off-by: Bin Sun <bins@vmware.com>
Diffstat (limited to 'vio/tox.ini')
-rw-r--r--vio/tox.ini15
1 files changed, 14 insertions, 1 deletions
diff --git a/vio/tox.ini b/vio/tox.ini
index bf5d800..966b7bb 100644
--- a/vio/tox.ini
+++ b/vio/tox.ini
@@ -7,8 +7,21 @@ downloadcache = ~/cache/pip
[testenv]
deps = -r{toxinidir}/requirements.txt
-commands = coverage run --branch manage.py test vio
+commands =
+ /usr/bin/find . -type f -name "*.py[c|o]" -delete
+ python manage.py test vio
[testenv:pep8]
deps=flake8
commands=flake8
+
+[testenv:py27]
+commands =
+ {[testenv]commands}
+
+[testenv:cover]
+setenv=
+ DJANGO_SETTINGS_MODULE = vio.settings-cover
+commands =
+ coverage erase
+ {[testenv]commands}