XCTestHTMLReport icon indicating copy to clipboard operation
XCTestHTMLReport copied to clipboard

Spike: Adding screenshot flow for the start of each test

Open amleszk opened this issue 6 years ago • 3 comments

@TitouanVanBelle As I suggested here https://github.com/TitouanVanBelle/XCTestHTMLReport/issues/105 I wanted a way to see all screenshot attachments for failing UI tests. I added new HTML inserted string at the start of each test to show some small screenshots inline. This we help diagnose failures in UI tests with less clicking to expand.

I also added accumulateHTMLAsString to remove the number of repeated reduce calls

amleszk avatar Nov 10 '18 18:11 amleszk

Feature I was looking for, thanks !

I've just added a OnClick method at TestScreenshotFlow file - line 52 in order to display the screenshot in the right panel.

onclick=\"showScreenshot('[[FILENAME]]')\"

cmarchal avatar Feb 19 '19 21:02 cmarchal

Is this usable still?

I will fix the conflicts - should still be usable

amleszk avatar Jan 07 '20 14:01 amleszk