prashanth-sams / pytest-html-reporter

Generates a static html report based on pytest framework
MIT License
120 stars 37 forks source link

How to specify report name and path in conftest instead of pass via arguments and can i do same for screenshot? #196

Closed Himyuas closed 2 years ago

Himyuas commented 3 years ago

I generate folder for logs with timestamp and I want to store my html report there. Unfortunately code which generate folder is in pytest framework so I can not know name of folder when I start my test. As the result my html report stores to root folder of my framework.

Is there a way to specify(overwrite) path where to store html report in conftest file instead of specifying it via arguments? Sorry if this is a duplicate issue, I did my best to find it but w/o success

Thanks in advance.