pytest-dev/pytest-html

Add links to images in self contained report

Open

#110 opened on May 5, 2017

 (1 comment) (0 reactions) (0 assignees)Python (253 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (770 stars)
PR merge metrics
 (Avg merge 8h 28m) (9 merged PRs in 30d)

Description

When --self-contained-html is used we should provide links to any images in the HTML report. We should avoid duplicating the large data URI values, so it makes sense to use JavaScript to enable this functionality.

The links in the report column could be hidden by default and displayed via JavaScript, and the href destination could be taken from the associated img src. Similarly, the img could be an inactive link, enabled via JavaScript if enabled.

Contributor guide