From 49bec33d45ab7cf82aaf6be1e4de1695ba1577ab Mon Sep 17 00:00:00 2001 From: Victor Morales Date: Fri, 10 Feb 2017 13:18:29 -0600 Subject: [PATCH] Adding a code coverage threshold The current implementation of the coverage code job gate only fails when the report is not created. This change pretends to set a minimum reasonable percentage of code coverage(82%). Change-Id: Ia30116fff8b834486bde93c329543fce15be429f --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 5137a68360b..887789d8f3e 100644 --- a/tox.ini +++ b/tox.ini @@ -102,7 +102,7 @@ whitelist_externals = basepython = python2.7 commands = python setup.py testr --coverage --testr-args='{posargs}' - coverage report + coverage report --fail-under=82 --skip-covered [testenv:venv] commands = {posargs}