You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the problem seems to be related to the fact that you end up with ['coverage_test', 'coverage_test'] in self.source_pkgs_unmatched and coverage only removes on instance of it
If I set "--cov", this works fine - but then running pipx run tox -- src/coverage_test/tests/test_app.py the --cov consumes the path arg and I get CoverageWarning: Module src/coverage_test/tests/test_app.py was never imported.
Summary
when running with pytest-cov I get a ' Module x was previously imported, but not measured (module-not-measured)' but it is actually measured.
see the output here:
https://github.com/graingert-coef/coverage-test/actions/runs/11383996856/job/31670778809#step:4:33
full reproducer here: https://github.com/graingert-coef/coverage-test/
The text was updated successfully, but these errors were encountered: