Skip to content

Use relative paths with Coverage.py #930

@nathanjmcdougall

Description

@nathanjmcdougall
[tool.coverage.run]
relative_files = true

Otherwise the generated coverage reports (e.g. XML) can contain absolute instead of relative paths.

https://coverage.readthedocs.io/en/latest/config.html#run-relative-files

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions