From: ying.yunlong Date: Fri, 29 Sep 2017 02:26:51 +0000 (+0800) Subject: Add vfc-gvnfm-vnfres tox coverge check X-Git-Tag: v1.0.0~4 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=b38e9fb27f547e8a7dd7f8cd184337963bb4bce7;p=vfc%2Fgvnfm%2Fvnfres.git Add vfc-gvnfm-vnfres tox coverge check Change-Id: I784c028adb769a983a663211b01be79006e3ec16 Issue-ID: VFC-477 Signed-off-by: ying.yunlong --- diff --git a/res/tox.ini b/res/tox.ini index 95b9a24..42f8d9f 100644 --- a/res/tox.ini +++ b/res/tox.ini @@ -7,6 +7,7 @@ downloadcache = ~/cache/pip [flake8] ignore = E501,E226,E126,W293,E502,E225,E302 +max-complexity = 12 [testenv] deps = -r{toxinidir}/requirements.txt @@ -18,4 +19,7 @@ commands = flake8 [testenv:py27] commands = - {[testenv]commands} \ No newline at end of file + {[testenv]commands} + +[testenv:cov] +commands = coverage html --omit="*test_*,*__init__.py,*site-packages*" -d htmlcov \ No newline at end of file