Skip to content

Commit

Permalink
Adding coverage configuration file.
Browse files Browse the repository at this point in the history
Note this deliberately excludes any remaining self-test blocks
from the coverage statistics so they don't count against us.
See #820 for moving that test code under Tests/ so it actually
gets run under TravisCI etc and counts positively towards our
test coverage.
  • Loading branch information
peterjc committed Apr 4, 2017
1 parent b2a52db commit 78a3237
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Tests/.coveragerc
@@ -0,0 +1,18 @@
# This is a configuration file for the Python testing tool
# "coverage", see https://bitbucket.org/ned/coveragepy
#
# Biopython uses this via TravisCI/Tox to report test coverage
# to https://codecov.io/gh/biopython/biopython

[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:
if __debug__:

# Don't complain about any self-tests or the handful
# of files with a directly executable bit of code:
if __name__ == .__main__.:

0 comments on commit 78a3237

Please sign in to comment.