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

Hi Instructor,

When running pytest -s --html=report.html test_a.py 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
__init__.py __pycache__ test_a.py test_four.py test_one.py test_three.py test_two.py

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

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 %


M
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

-Monal


S
Sejal Replied on 05/09/2020

Hey, 

Thank you for the information that the error is gone.


Related Posts