Skip to content

Commit

Permalink
Add test coverage
Browse files Browse the repository at this point in the history
Signed-off-by: John Strunk <[email protected]>
  • Loading branch information
JohnStrunk committed Nov 22, 2022
1 parent f6203e4 commit 3b293f2
Show file tree
Hide file tree
Showing 5 changed files with 204 additions and 97 deletions.
40 changes: 40 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# coverage.py configuration file
# https://coverage.readthedocs.io/en/latest/config.html

[run]
# Enable branch coverage
branch = True
source = .

[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__.:

# Don't complain about abstract methods, they aren't run:
@(abc\.)?abstractmethod

ignore_errors = True
omit =
*_test.py
build.py
skip_empty = True

[html]
directory = htmlcov

[xml]
output = coverage.xml
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
/__pycache__/
/.coverage
/.mypy_cache/
/.pytest_cache/
/.venv/
/.vscode/
/coverage.xml
/htmlcov/
/wahoo-results.exe
/wahoo-results.ini
/docs/_build/
Expand Down
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ plantweb = "*"
rstcheck = "*"
sphinx-rtd-theme = "*"
sphinx-tabs = "*"
pytest-cov = "*"

[requires]
python_version = "3.9"
Loading

0 comments on commit 3b293f2

Please sign in to comment.