Skip to content

Commit f78fdce

Browse files
committed
Add some comments around coverage
1 parent f1a1ea8 commit f78fdce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

run

+4-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ test)
3838
python3 -m pytest tests/ $args;;
3939

4040
coverage)
41-
python3 -m coverage run --omit "tests/*,src/pypdfium2_raw/bindings.py,setupsrc/*" -m pytest tests/ $args
41+
# you can add src/pypdfium2/__main__.py,src/pypdfium2/_cli/* to omission list to check only the core library
42+
# also, you may want to add src/pypdfium2/_library_scope.py because coverage seems to be unreliable for that one
43+
# BTW, you may get a minor increase in coverage by setting DEBUG_AUTOCLOSE=1
44+
python3 -m coverage run --omit "src/pypdfium2_raw/bindings.py,tests/*,setupsrc/*" -m pytest tests/ $args
4245
python3 -m coverage report;;
4346

4447
docs-build)

0 commit comments

Comments
 (0)