From 8116f8a87f0a0340c6fadb3d9c814eb8a3089f1c Mon Sep 17 00:00:00 2001 From: "Bradley A. Thornton" Date: Wed, 22 May 2024 19:15:08 -0700 Subject: [PATCH] Allow tox to fail if under covered --- tox.ini | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 15a6f8e..dd70fa9 100644 --- a/tox.ini +++ b/tox.ini @@ -43,7 +43,6 @@ extras = commands_pre = # safety measure to assure we do not accidentally run tests with broken dependencies {envpython} -m pip check - # cleaning needed to prevent errors between runs sh -c "rm -f {envdir}/.coverage* 2>/dev/null || true" commands = @@ -57,7 +56,7 @@ commands = coverage combine -q --data-file={envdir}/.coverage {envdir}/.coverage.* && \ coverage xml --data-file={envdir}/.coverage -o {envdir}/coverage.xml --ignore-errors --fail-under=0 && \ COVERAGE_FILE={envdir}/.coverage coverage lcov --fail-under=0 --ignore-errors -q && \ - COVERAGE_FILE={envdir}/.coverage coverage report --fail-under=0 --ignore-errors \ + COVERAGE_FILE={envdir}/.coverage coverage report --ignore-errors \ " # We fail if files are modified at the end git diff --exit-code