Add test coverage 55/28055/3
authorYujun Zhang <zhang.yujunz@zte.com.cn>
Sun, 5 Feb 2017 07:55:54 +0000 (15:55 +0800)
committerYujun Zhang <zhang.yujunz@zte.com.cn>
Sun, 5 Feb 2017 15:37:41 +0000 (23:37 +0800)
Change-Id: I9bff5fb1be3edc57d27cfe44f210a2814efd2274
JIRA: QTIP-204
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
test-requirements.txt
tox.ini

index 8ab640c..43efcfe 100644 (file)
@@ -6,4 +6,6 @@ pytest
 pykwalify
 mock
 pip_check_reqs
+coverage
+pytest-cov
 tox
diff --git a/tox.ini b/tox.ini
index 0d704b2..1a90dfa 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -11,11 +11,12 @@ skipsdist = True
 usedevelop = True
 install_command = pip install -U {opts} {packages}
 deps =
-  -r{toxinidir}/requirements.txt
-  -r{toxinidir}/test-requirements.txt
+  -rrequirements.txt
+  -rtest-requirements.txt
 commands=
   py.test \
     --basetemp={envtmpdir} \
+    --cov qtip --cov-report term-missing --cov-report html \
     {posargs}
 setenv=
   HOME = {envtmpdir}