cypress-image-snapshot icon indicating copy to clipboard operation
cypress-image-snapshot copied to clipboard

How to get snapshot diffs in Mochawesome Reporter

Open jrhone opened this issue 5 years ago • 4 comments

Hi, I'm trying to add the snapshot diff to the test context so it'll appear in my Mochawesome Report.

Is there a way for me to get the diffOutputPath in the on:after:test callback so I can add it to the test context?

I saw that you write test result metadata to a file cache so that your reporter can generate it's report, but I'm unable to access this file cache in that callback as I believe it's client side.

Thanks!

jrhone avatar Sep 10 '19 17:09 jrhone

Any updates on this please?

lukasmatiasko avatar May 29 '20 11:05 lukasmatiasko

@jrhone @lukasmatiasko Are you guys able to add the snapshot diff to the test context to show in Mochawesome Report?

hassanzohaib avatar Sep 13 '21 08:09 hassanzohaib

Hi, I found a solution and I posted it on stackoverflow : https://stackoverflow.com/q/62141050/9540653

DavicVictor avatar Feb 16 '22 09:02 DavicVictor

How can we get the value of "diffOutputPath"? change to use relative path instead of absolute path

787681277 avatar Nov 22 '22 06:11 787681277