Skip to content

Commit

Permalink
added .coveragerc so code can be excluded from test coverage reports
Browse files Browse the repository at this point in the history
blocks can either be commented with “#pragma: no cover”, or raise
NotImplementedError. __repr__ methods are also ignored, as is ‘if
__name__ == “__main__” ‘
  • Loading branch information
tomkinsc committed Apr 13, 2015
1 parent f46c40d commit 9bffdea
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# .coveragerc to control test coverage report
[report]

exclude_lines =
pragma: no cover

#raise AssertionError
raise NotImplementedError

def __repr__
if self\.debug

if 0:
if __name__ == .__main__.:

0 comments on commit 9bffdea

Please sign in to comment.