Skip to content

Commit

Permalink
Coverage and pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
Shmuma committed Feb 16, 2024
1 parent a9a3002 commit a733dc8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ dist
build
.swp
.ipynb_checkpoints
htmlcov
.coverage
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pytest:
pytest

cov:
open htmlcov/index.html
3 changes: 3 additions & 0 deletions pycov.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[run]
source =
ptan
4 changes: 4 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[pytest]
testpaths=**/tests_py
pythonpath=ptan
addopts= --cov --cov-config=pycov.ini --cov-report=term --cov-report=html

0 comments on commit a733dc8

Please sign in to comment.