Skip to content

Commit

Permalink
Add coverage lib and config for it
Browse files Browse the repository at this point in the history
Here is unittest, but we can switch to pytest in the future...
  • Loading branch information
shurph committed Oct 29, 2020
1 parent fc840e8 commit cf61a86
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[report]

exclude_lines =
if __name__ == .__main__.:
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
test:
PYTHONPATH=. coverage run -m unittest discover -s test
coverage report -m
flake8
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
flake8
coverage>=5.3,<5.4

0 comments on commit cf61a86

Please sign in to comment.