Skip to content

Save screenshots for failing tests in reportΒ #307

@dan-planable

Description

@dan-planable

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions