Add vfc-gvnfm-vnfres tox coverge check 63/16563/1
authorying.yunlong <ying.yunlong@zte.com.cn>
Fri, 29 Sep 2017 02:26:51 +0000 (10:26 +0800)
committerying.yunlong <ying.yunlong@zte.com.cn>
Fri, 29 Sep 2017 02:27:11 +0000 (10:27 +0800)
Change-Id: I784c028adb769a983a663211b01be79006e3ec16
Issue-ID: VFC-477
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
res/tox.ini

index 95b9a24..42f8d9f 100644 (file)
@@ -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