| 1 |
# .coveragerc to control coverage.py |
| 2 |
[run] |
| 3 |
branch = True |
| 4 |
omit = src/tests/* |
| 5 |
|
| 6 |
[report] |
| 7 |
# Regexes for lines to exclude from consideration |
| 8 |
exclude_lines = |
| 9 |
# Have to re-enable the standard pragma |
| 10 |
pragma: no cover |
| 11 |
# Don't complain about missing debug-only code: |
| 12 |
def __repr__ |
| 13 |
def __str__ |
| 14 |
def __eq__ |
| 15 |
def __hash__ |
| 16 |
if self\.debug |
| 17 |
# Disable test coverage for firmware updates |
| 18 |
def firmware_update |
| 19 |
def get_config |
| 20 |
# Don't complain if tests don't hit defensive assertion code: |
| 21 |
raise AssertionError |
| 22 |
raise NotImplementedError |
| 23 |
# Don't complain about abstract methods, they aren't run: |
| 24 |
@(abc\.)?abstractmethod |
| 25 |
|
| 26 |
ignore_errors = True |
| 27 |
|
| 28 |
[html] |
| 29 |
directory = coverage_html_report |