Add a UT threshold 89/19389/2
authorBin Yang <bin.yang@windriver.com>
Thu, 19 Oct 2017 01:52:51 +0000 (09:52 +0800)
committerBin Yang <bin.yang@windriver.com>
Thu, 19 Oct 2017 01:52:51 +0000 (09:52 +0800)
This change helps to monitor and detect changes that reduce the
porcentage of the Unit test coverage.

Change-Id: I289f4c2f9d13b5531b8d7580f62a3a7ba5f3ee5f
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-Id: MULTICLOUD-83
Signed-off-by: Bin Yang <bin.yang@windriver.com>
.gitignore
newton/tox.ini
ocata/tox.ini
windriver/tox.ini

index 7d298bc..8d4d3b4 100644 (file)
@@ -10,3 +10,4 @@ logs/*.log
 htmlcov/
 .idea/
 mydatabase
+.DS_Store
index ee15e4b..71a8ff7 100644 (file)
@@ -7,6 +7,6 @@ downloadcache = ~/cache/pip
 
 [testenv]
 deps = -r{toxinidir}/requirements.txt
-commands = coverage run --branch manage.py test newton
-    coverage html --omit=".tox*,*test*,*__init__.py" -d htmlcov
-
+commands =
+  coverage run --branch manage.py test
+  coverage report --omit=".tox/*,*tests*,*__init__.py" --fail-under=30
index 05ef3c7..dcd7033 100644 (file)
@@ -9,6 +9,7 @@ downloadcache = ~/cache/pip
 setenv =
     PYTHONPATH = {toxinidir}/../newton
 deps = -r{toxinidir}/requirements.txt
-commands = coverage run --branch manage.py test ocata
-    coverage html --omit=".tox*,*test*,*__init__.py" -d htmlcov
+commands = 
+    coverage run --branch manage.py test
+    coverage report --omit=".tox/*,*tests*,*__init__.py,*newton*" --fail-under=30
 
index 764cf01..90357d6 100644 (file)
@@ -9,6 +9,6 @@ downloadcache = ~/cache/pip
 setenv =
     PYTHONPATH = {toxinidir}/../newton
 deps = -r{toxinidir}/requirements.txt
-commands = coverage run --branch manage.py test titanium_cloud
-    coverage html --omit=".tox*,*test*,*__init__.py" -d htmlcov
-
+commands =
+    coverage run --branch manage.py test titanium_cloud
+    coverage report --omit=".tox/*,*tests*,*__init__.py,*newton*" --fail-under=30