pytest-html icon indicating copy to clipboard operation
pytest-html copied to clipboard

add html anchors to each stdout line

Open ssbarnea opened this issue 6 years ago • 2 comments

Sometimes the captured stdout/stderr can be quite long and it would be very useful if users could share bookmarks that send user to the exact captured line.

Example: http://logs.openstack.org/73/645273/26/check/tox-molecule/87eb604/tox/reports.html

To enable this we may need to add line numbers to the output but this can be done in pure CSS.

ssbarnea avatar Jun 24 '19 16:06 ssbarnea

Hey @ssbarnea!

You mean similar to what you can do with GitHub and create links to specific lines of code?

That would be awesome! ❤️

BeyondEvil avatar Jun 24 '19 20:06 BeyondEvil

Tried adding id to each resultline and use as anchor, but it also needs to expand the extras. I like to be able to just add a #anchor to the end of the html and it will jump there and expand the result.

fenchu avatar Feb 01 '22 12:02 fenchu