Skip to content

Commit

Permalink
refine coverage reporting
Browse files Browse the repository at this point in the history
- add /.coverage.* to .gitignore
- arrange .gitignore more cleanly
- include textual coverage report in tox output
- increase precision of percentages reported by coverage
  • Loading branch information
freddrake committed Dec 1, 2018
1 parent b4247e6 commit 1d05197
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 13 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ exclude_lines =
if sys.platform\[:3\] == "win":
if __name__ == "__main__":
if __name__ == '__main__':
precision = 1
31 changes: 18 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
*.pyc
*.egg-info
__pycache__
.cache/
.tox/
.installed.cfg
bin/
develop-eggs/
eggs/
parts/
doc/_build
htmlcov/
.coverage
coverage.xml
/.cache/
/.tox/
/doc/_build
ZConfig.egg-info
__pycache__/
nosetests.xml

# Buildout
#
/.installed.cfg
/bin/
/develop-eggs/
/eggs/
/parts/

# Coverage
#
# No / at the end of htmlcov so it can be a symlink that points to some
# more interesting location (possibly served by a webserver).
#
/.coverage
/.coverage.*
/coverage.xml
/htmlcov
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ commands =
commands =
coverage combine
coverage html
coverage report -m --fail-under 99

0 comments on commit 1d05197

Please sign in to comment.