diff options
author | Hong Hui Xiao <honghui_xiao@yeah.net> | 2017-08-28 16:54:57 +0800 |
---|---|---|
committer | Hong Hui Xiao <honghui_xiao@yeah.net> | 2017-09-01 20:30:57 +0800 |
commit | 7bd792729198f1a04eac6d2042c7a03a632814a0 (patch) | |
tree | 1ba4c7b9352f21092c6d7f097c148fe531696bc2 /multivimbroker/tox.ini | |
parent | 67430600410e312c2db5a6a7709da8e45a5245fa (diff) |
Add code coverage for multicloud framework
Since multicloud projects are Django projects essentially, use
the mechanism from Django to check code coverage.
Change-Id: I850e64e601f9cf4d26222a2a2295ec005dfea474
Issue-Id: MULTICLOUD-71
Signed-off-by: Hong Hui Xiao <honghui_xiao@yeah.net>
Diffstat (limited to 'multivimbroker/tox.ini')
-rw-r--r-- | multivimbroker/tox.ini | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/multivimbroker/tox.ini b/multivimbroker/tox.ini index 88d43d9..4db044a 100644 --- a/multivimbroker/tox.ini +++ b/multivimbroker/tox.ini @@ -7,8 +7,21 @@ downloadcache = ~/cache/pip [testenv] deps = -r{toxinidir}/requirements.txt -commands = coverage run --branch manage.py test multivimbroker +commands = + /usr/bin/find . -type f -name "*.py[c|o]" -delete + python manage.py test multivimbroker [testenv:pep8] deps=flake8 commands=flake8 + +[testenv:py27] +commands = + {[testenv]commands} + +[testenv:cover] +setenv= + DJANGO_SETTINGS_MODULE = multivimbroker.settings-cover +commands = + coverage erase + {[testenv]commands} |