mochawesome-report-generator icon indicating copy to clipboard operation
mochawesome-report-generator copied to clipboard

support links to files

Open aquark opened this issue 6 years ago • 4 comments

I'm using mochawesome-report-generator with puppeteer and capturing DOM mhtml snapshots of failed tests. I'd like to link to the mhtml file, but only "http:" and "ftp:" URLs are treated as links. Note that even a "file:" link wouldn't work because I need to link to a relative path (the snapshot is copied into the report directory). I've also wanted this feature to do things like attach logfiles, tcpdumps, and similar non-text test artifacts.

Rather than trying to automatically detect relative file links, my suggestion would be to extend the object structure used to add context titles { title, value } to include an additional href property which can be used to link the value to that URL. So I could attach context like { value: './snapshot.mhtml', href: './snapshot.mhtml' }

aquark avatar Oct 03 '19 01:10 aquark

I have virtually the same usecase where we need to support links to HAR files generated from Cypress. Would be greatly appreciated.

csvan avatar Aug 14 '20 11:08 csvan

Same here

sidharthramesh avatar Jul 07 '21 14:07 sidharthramesh

+1, we would like to attach selenium and HTTP logs to our tests

michaelBurko avatar Dec 01 '21 16:12 michaelBurko