From 69366b9209a3f080a0527ce48720931c293fda91 Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Wed, 4 May 2022 22:45:10 +0000 Subject: [PATCH] Set a minimum coverage limit Currently the code coverage check job has no minimum threshold. Let's set a minimum bar of 83% coverage or the job will fail. Currently we are around 85%, so this gives us some room. As coverage improves we can incrementally raise this bar. Change-Id: I3df49281619727ad0386f0cd8f8751bf272d2147 --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index ba7722550..ed3ebe3dc 100644 --- a/tox.ini +++ b/tox.ini @@ -66,9 +66,9 @@ commands = find . -type f -name "*.pyc" -delete stestr run --no-subunit-trace {posargs} coverage combine - coverage report --skip-covered coverage html -d cover coverage xml -o cover/coverage.xml + coverage report --fail-under=83 --skip-covered [testenv:bandit] deps = -r{toxinidir}/test-requirements.txt