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
I use nox to run tests for python 3.9, 3.10, 3.11, 3.12, and 3.13
I need to run coverage on every single python version to test code for paths that rely on python version. This should produce one coverage data file for each run.
I need to then run coverage combine to get the full report across all versions.
Common pitfalls:
Coverage has a default filename which will get overwritten every run unless configured otherwise.
I have to make sure there's no existing coverage file before running the tests and generating new ones.
Cleanup the multiple coverage files produced from each run and only keep the combined report
Describe the solution you'd like
A nox + pytest + coverage recipe on cookbook
Describe alternatives you've considered
Here's my current working recipe (I'm not sure if it's the best way, but it works): noxfile.py pyproject.toml
Anything else?
No response
The text was updated successfully, but these errors were encountered:
How would this feature be useful?
My use case:
coverage combine
to get the full report across all versions.Common pitfalls:
Describe the solution you'd like
A nox + pytest + coverage recipe on cookbook
Describe alternatives you've considered
Here's my current working recipe (I'm not sure if it's the best way, but it works):
noxfile.py
pyproject.toml
Anything else?
No response
The text was updated successfully, but these errors were encountered: