Is there a way to get relative paths to resulted coverage.xml (or strip off prefix) using coverage.py?
Since coverage v5.0.4 you can set the relative_files option to True, e.g. in your .coveragerc:
[run]
relative_files=True
See this documentation section for reference and this Github issue for context.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With