Skip to content

Commit d777606

Browse files
committed
Adjusted .coveragerc
1 parent 4b32f1b commit d777606

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

.coveragerc

+23-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
1+
[run]
2+
branch = True
3+
14
[report]
2-
exclude_lines =
3-
pragma: no cover
4-
# Don't complain if tests don't hit defensive assertion code:
5-
# See: https://stackoverflow.com/a/9212387/3407256
5+
; Regexes for lines to exclude from consideration
6+
exclude_also =
7+
; Don't complain about missing debug-only code:
8+
def __repr__
9+
if self\.debug
10+
11+
; Don't complain if tests don't hit defensive assertion code:
12+
raise AssertionError
613
raise NotImplementedError
14+
15+
; Don't complain if non-runnable code isn't run:
16+
if 0:
17+
if __name__ == .__main__.:
18+
19+
; Don't complain about abstract methods, they aren't run:
20+
@(abc\.)?abstractmethod
21+
22+
ignore_errors = True
23+
24+
[html]
25+
directory = coverage_html_report

0 commit comments

Comments
 (0)