Skip to content

Commit

Permalink
Allow tox to fail if under covered
Browse files Browse the repository at this point in the history
  • Loading branch information
cidrblock committed May 23, 2024
1 parent b4c9a1a commit 8116f8a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand All @@ -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
Expand Down

0 comments on commit 8116f8a

Please sign in to comment.