Permalink
Browse files

Better make clean; improve control of the code coverage

  • Loading branch information...
hmalphettes committed Nov 20, 2017
1 parent c4dd2b5 commit ead5f8be19a352420b53a707c80448b98e788d17
Showing with 21 additions and 2 deletions.
  1. +20 −1 .coveragerc
  2. +1 −1 Makefile
View
@@ -1,2 +1,21 @@
[run]
omit=setup.py,test_s3_storage_analyzer.py
branch = True
omit = setup.py,test_s3_storage_analyzer.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 __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 0:
if __name__ == .__main__.:
View
@@ -5,7 +5,7 @@ cov: clean
pytest --cov=./
clean:
@rm .coverage .coverage.*
@rm .coverage .coverage.* &>/dev/null || true
install:
pip install -r requirements-dev.txt

0 comments on commit ead5f8b

Please sign in to comment.