Skip to content

Commit

Permalink
add coverage config
Browse files Browse the repository at this point in the history
  • Loading branch information
saxix committed Jul 5, 2024
1 parent 46410dd commit d790fdb
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
~*
Makefile
coverage.xml
!tests/.coveragerc
!.dockerignore
!.gitignore
!.pdm-python
Expand Down
35 changes: 35 additions & 0 deletions tests/.coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[run]
branch = True
source = hope_country_workspace

omit =
*/tests/**
*/migrations/*,
*/wsgi.py,


[report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
pragma: no-cover
# Don't complain about missing debug-only code:
def __repr__
if self\.debug
# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
except ImportError
# Don't complain if non-runnable code isn't run:
#if 0:
if __name__ == .__main__.:
if TYPE_CHECKING:
if settings.DEBUG:

#fail_under = 95

ignore_errors = True

[html]
directory = ~build/coverage

0 comments on commit d790fdb

Please sign in to comment.