Skip to content

Commit

Permalink
Added configuration for 'coverage'
Browse files Browse the repository at this point in the history
  • Loading branch information
sumpfralle committed Apr 17, 2017
1 parent c1eadcb commit 9257b49
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[run]
branch = True
source = pycam

[report]
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain about missing debug-only code:
def __repr__
if self\.debug
# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
# Don't complain if non-runnable code isn't run:
if __name__ == .__main__.:

[html]
directory = build/coverage-report
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ build
eggs
*.egg-info
.svn
.coverage

.DS_Store*
ehthumbs.db
Expand Down

0 comments on commit 9257b49

Please sign in to comment.