Skip to content

Commit

Permalink
added coveragerc
Browse files Browse the repository at this point in the history
  • Loading branch information
adler-j committed Oct 27, 2015
1 parent 8b39362 commit 4783e07
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# .coveragerc to control coverage.py
[run]
branch = False
omit =
*/__init__.py
odl/diagnostics/*
odl/util/*
test/*
run_tests.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 __str__
def __repr__
if self\.debug

# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
return NotImplemented

# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == '__main__':

ignore_errors = True

[html]
directory = htmlcov

0 comments on commit 4783e07

Please sign in to comment.