From b38e9fb27f547e8a7dd7f8cd184337963bb4bce7 Mon Sep 17 00:00:00 2001 From: "ying.yunlong" Date: Fri, 29 Sep 2017 10:26:51 +0800 Subject: [PATCH] Add vfc-gvnfm-vnfres tox coverge check Change-Id: I784c028adb769a983a663211b01be79006e3ec16 Issue-ID: VFC-477 Signed-off-by: ying.yunlong --- res/tox.ini | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.16.6