adamgruber / mochawesome

A Gorgeous HTML/CSS Reporter for Mocha.js
https://gitter.im/mochawesome/general
MIT License
1.06k stars 160 forks source link

Add the ability to determine the screenshot and video file path #311

Closed Tackgnol closed 2 years ago

Tackgnol commented 4 years ago

Is your feature request related to a problem? Please describe. Right now the files get saved to an arbitrary directory in /cypress This means that any reports need to do a weird pathing to those ;(

Describe the solution you'd like I would like to be able to add an option --screenshotDir /where/screenshots/need/to/be --videoDir `/where/videos/need/to/be

Describe alternatives you've considered I can write postScripts that move them all but then I have to edit the JSON and it becomes messy...

jaybeeuu commented 4 years ago

This sounds like your having an issue with cypress rather than mochawesome to me, in which case you might have better luck with an issue in their repo.

That said, if that is the case then you can configure the videos and screenshots directories with the cypress.config entries screenshotsFolder and videosFolder. See the cypress docs