Skip to content

Commit b3534af

Browse files
committed
fix: use module name for pytest-cov coverage collection
The --cov flag was using {{package}} (jsonlt-python) instead of {{module}} (jsonlt), causing pytest-cov to fail to find the module and generate empty coverage reports.
1 parent 47ce5b6 commit b3534af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ test-conformance *args:
160160

161161
# Run tests with coverage
162162
test-coverage *args:
163-
pytest -m "not benchmark" --cov={{package}} --cov-branch --cov-report=term-missing:skip-covered --cov-report=xml --cov-report=json "$@"
163+
pytest -m "not benchmark" --cov={{module}} --cov-branch --cov-report=term-missing:skip-covered --cov-report=xml --cov-report=json "$@"
164164

165165
# RUn documentation tests
166166
test-examples *args:

0 commit comments

Comments
 (0)