LironEr / cypress-mochawesome-reporter

Zero config Mochawesome reporter for Cypress with screenshots and videos
MIT License
159 stars 49 forks source link

Can't handle screenshots outside the report folder #114

Closed mikstime closed 1 year ago

mikstime commented 1 year ago

Environment

- cypress-mochawesome-reporter: 3.2.4

What happened?

It is possible to move screenshot file using After Screenshot API which could result in screenshot being located outside the report folder. It's clearly seen current implementation of enhanceReport function can't handle such cases therefore report is not created. I believe reporter could check if provided path is absolute and copy file if so.

Config file

Not needed

Relevant log output

No response

Anything else?

No response

LironEr commented 1 year ago

Actually, I haven't tried this, but it depends if I can get the new path here.

It would help if you could create an example repo with this problem so I will be able to play with and try to fix this issue

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.