pytest-dev/pytest-html

Add links to images in self contained report

Aperta

#110 aperta il 5 mag 2017

 (1 commento) (0 reazioni) (0 assegnatari)Python (253 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (770 stelle)
Metriche merge PR
 (Merge medio 8h 28m) (9 PR mergiate in 30 g)

Descrizione

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.

Guida contributor