58 lines
1.1 KiB
INI
58 lines
1.1 KiB
INI
[run]
|
|
source = backend
|
|
omit =
|
|
*/tests/*
|
|
*/test_*
|
|
*/__pycache__/*
|
|
*/venv/*
|
|
*/env/*
|
|
*/node_modules/*
|
|
*/migrations/*
|
|
*/.venv/*
|
|
backend/test_runner/*
|
|
setup.py
|
|
conftest.py
|
|
|
|
[report]
|
|
# Regexes for lines to exclude from consideration
|
|
exclude_lines =
|
|
# Have to re-enable the standard pragma
|
|
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
|
|
|
|
# Don't complain if non-runnable code isn't run:
|
|
if 0:
|
|
if __name__ == .__main__.:
|
|
|
|
# Don't complain about abstract methods, they aren't run:
|
|
@(abc\.)?abstractmethod
|
|
|
|
# Don't complain about type checking code
|
|
if TYPE_CHECKING:
|
|
|
|
# Don't complain about logger calls
|
|
logger\.debug
|
|
logger\.info
|
|
|
|
# Skip __str__ and __repr__ methods
|
|
def __str__
|
|
def __repr__
|
|
|
|
ignore_errors = True
|
|
|
|
[html]
|
|
directory = test_reports/coverage_html
|
|
title = YouTube Summarizer Coverage Report
|
|
|
|
[xml]
|
|
output = test_reports/coverage.xml
|
|
|
|
[json]
|
|
output = test_reports/coverage.json |