Skip to content

Commit 9d6f73f

Browse files
committed
test: add coverage output
1 parent 42595b2 commit 9d6f73f

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

.coveragerc

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[run]
2+
source = .
3+
omit =
4+
tests/*
5+
*/tests/*
6+
conftest.py
7+
*/conftest.py
8+
setup.py
9+
*/__pycache__/*
10+
*/test_*.py
11+
test_*.py
12+
13+
[report]
14+
exclude_lines =
15+
pragma: no cover
16+
def __repr__
17+
raise NotImplementedError
18+
if __name__ == .__main__.:
19+
if TYPE_CHECKING:
20+
21+
show_missing = True
22+
precision = 2
23+
24+
[html]
25+
directory = htmlcov

pytest.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ addopts = -v --tb=short
77
pythonpath = .
88
filterwarnings =
99
ignore::DeprecationWarning
10+
11+
# Coverage options (use with: pytest --cov)
12+
# Run: pytest --cov --cov-report=term-missing
13+
# Or: pytest --cov --cov-report=html

0 commit comments

Comments
 (0)