diff options
author | René Korthaus <[email protected]> | 2016-02-20 21:45:37 +0100 |
---|---|---|
committer | René Korthaus <[email protected]> | 2016-02-20 21:45:37 +0100 |
commit | 5c6373a7a595b396b0a4ead0a7ff277762f4b2a0 (patch) | |
tree | d69778645838d3a1cfe65f7621cc12b5aa3f61d3 /.coveragerc | |
parent | f684c8a8606c751156a6e37cc3500cfc9792d8e6 (diff) |
Exclude tests from python coverage
Diffstat (limited to '.coveragerc')
-rw-r--r-- | .coveragerc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 000000000..d93af43e2 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,18 @@ +# .coveragerc to control coverage.py +[run] +branch = True + +[report] +# Regexes for lines to exclude from consideration +exclude_lines = + # Have to re-enable the standard pragma + pragma: no cover + + # Don't complain if non-runnable code isn't run: + if 0: + def main + if __name__ == .__main__.: + + # Exclude tests + def test + |