Skip to content

Commit

Permalink
Omit unit tests directory from all coverage runs
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristi1324 authored and Dany9966 committed Apr 29, 2024
1 parent 041d4bf commit b3461a9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,17 @@ setenv =
commands =
stestr run --no-subunit-trace {posargs}
coverage combine
coverage report --fail-under=75 --skip-covered --omit={toxinidir}/coriolis/tests/*
coverage report --fail-under=75 --skip-covered
coverage html -d cover
coverage xml -o cover/coverage.xml

[testenv:venv]
commands = {posargs}

[coverage:run]
source = coriolis
omit = coriolis/tests/*

[flake8]
# E125 is deliberately excluded. See https://github.com/jcrocholl/pep8/issues/126
# E251 Skipped due to https://github.com/jcrocholl/pep8/issues/301
Expand Down

0 comments on commit b3461a9

Please sign in to comment.