Closed gaborbernat closed 1 year ago
Picking this up
Are you sure you want .xml files to open this way? And if so, why not .json files?
I'm only really interested in the HTML to be honest 😊
This is implemented in 5f31ff9a thanks to #1613.
This is now released as part of coverage 7.2.4.
Currently, coverage
xml/html
report prints the path of the file written to stdout:It would be great if we'd prepend the
file:/
protocol prefix to this path so these links are clickable from the modern terminal, like iTerm or wezterm. I'm ok if it requires a flag to enable this behavior, as I can add that flag to tox.See:
The file prefix enables integrated hyperlinks in all modern terminals.
Perhaps a better and more complicated alternative would be to hide it behind an extra and use rich to print integrated hyperlinks - see https://www.willmcgugan.com/blog/tech/post/real-working-hyperlinks-in-the-terminal-with-rich whenever
tty
is detected; this would allow to avoid the file prefix and also enable it forcoverage
report.If you consider this feature out of scope for the core project, I'd request some way to achieve this via a plugin :blush: