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
{{ message }}
Repository navigation
using pytest-cov to measure coverage of pytest plugins #682
Activity
ionelmc commentedon Mar 31, 2025
Yes and no. I tried to document a workaround here https://pytest-cov.readthedocs.io/en/latest/plugins.html
You can always just use
coverage rundirectly. The tradeoff here is that the cov plugin implements a proper context for coverage (if you use that) while using coverage directly doesn't really set a good context (dynamic_context = test_functionis very basic). See https://coverage.readthedocs.io/en/latest/contexts.htmlcjw296 commentedon Apr 10, 2025
Yeah, I ended up going with
coverage runin the end, it's very meta when you're using pytester to run tests with a plugin, under xist 😅.