Skip to content

Commit dc8baaf

Browse files
committed
Add config file for test coverage reporting.
1 parent 2093e1f commit dc8baaf

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.coveragerc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[run]
2+
source = adbap
3+
branch = true
4+
omit = tests/*
5+
6+
[report]
7+
exclude_lines =
8+
# Have to re-enable the standard pragma
9+
pragma: no cover
10+
11+
# Don't complain about missing debug-only code:
12+
def __repr__
13+
if self\.debug
14+
15+
# Don't complain if tests don't hit defensive assertion code:
16+
raise AssertionError
17+
raise NotImplementedError
18+
19+
# Don't complain if non-runnable code isn't run:
20+
if 0:
21+
if __name__ == .__main__.:

0 commit comments

Comments
 (0)