Skip to content

Commit 02d385e

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 a7ef274 commit 02d385e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)