Getting error when running html reports | Selenium Python Forum
Monal Posted on 05/09/2020

Hi Instructor,

When running pytest -s --html=report.html for html reports I see below error, please help and I am running on Mac Osx. How can I fix

thanks Monal

macbookpro16@Monals-MacBook-Pro testcases % ls __pycache__

macbookpro16@Monals-MacBook-Pro testcases % pytest -s --html=report.html

ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: unrecognized arguments: --html=report.html
inifile: None
rootdir: /Users/macbookpro16/eclipse-workspace/Python_Module15_ProjectDemo/testcases

macbookpro16@Monals-MacBook-Pro testcases %

Monal Replied on 05/09/2020

Hi Instructor,

Nevermind I figured out it seems I needed to do pip install pytest-html to make it work ... may be I seemed to missed this part int the video ...weird... anyway it works so please close this issue


09914040666 Replied on 05/09/2020


Thank you for the information that the error is gone.

Related Posts