Hazyzh / jest-html-reporters

🌈 Reporter for jest test framework. 🌈
https://hazyzh.github.io/report.html
MIT License
522 stars 100 forks source link

Save screenshots for failing tests in report #307

Open dan-planable opened 7 months ago

dan-planable commented 7 months ago

Is your feature request related to a problem? Please describe. I try to use html reporter together with my Detox tests on mobile. The problem that i have is that when a particular test fails, then the screenshots are not displayed in the report. As the screenshots are generated in artifacts also after the test execution, I didn't find any way to link them with my report.

Describe the solution you'd like The screenshots to be displayed together with the test error and all other information in report.

Describe alternatives you've considered Tried using addAttach but it requires the path of the image, if I provide the path to where the screenshot will be saved after the test executes, it will return an error as screenshot wasn't saved there yet.