Skip to content

Commit 10992f8

Browse files
committed
Use envsitepackagesdir in coverage path
Update tox.ini to set pytest --cov to {envsitepackagesdir}/dlclivegui instead of the project module name. This ensures coverage collects from the package installed into the tox environment (matching the GitHub Actions job) and avoids missing coverage when the package is not imported from the project root.
1 parent 5814a7a commit 10992f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ setenv =
2424
# Keep behavior aligned with your GitHub Actions job:
2525
commands =
2626
pytest -m "not hardware" --maxfail=1 --disable-warnings \
27-
--cov=dlclivegui \
27+
--cov={envsitepackagesdir}/dlclivegui \
2828
--cov-report=xml:{toxinidir}/.coverage.{envname}.xml \
2929
--cov-report=term-missing \
3030
{posargs}

0 commit comments

Comments
 (0)