Add vfc-gvnfm-driver tox coverge check 85/16585/1
authorying.yunlong <ying.yunlong@zte.com.cn>
Fri, 29 Sep 2017 05:36:09 +0000 (13:36 +0800)
committerying.yunlong <ying.yunlong@zte.com.cn>
Fri, 29 Sep 2017 05:36:09 +0000 (13:36 +0800)
Change-Id: I46d723f770379db727483ed9e12ca8b094908d15
Issue-ID: VFC-480
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
gvnfmadapter/tox.ini

index e70d504..5030504 100644 (file)
@@ -1,5 +1,5 @@
 [tox]
-envlist = py27,pep8
+envlist = py27,pep8,cov
 skipsdist = true
  
 [testenv]
@@ -16,4 +16,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