Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pytest: error: unrecognized arguments: --html=report.html

Tags:

html

pip

pytest

I have html report installed for pytest.

It was working fine until one day this error was thrown

pytest: error: unrecognized arguments: --html=report.html

enter image description here

like image 301
Darya Tratseuskaya Avatar asked Sep 16 '19 11:09

Darya Tratseuskaya


2 Answers

Use pip list to check if you have pytest-html installed. If not, install it using pip install pytest-html.

pytest-html is a plugin for pytest, not part of pytest library.

like image 151
Dinko Pehar Avatar answered Sep 22 '22 18:09

Dinko Pehar


Please add pytest-html package from pycharm.
Make sure you have already installed plugin for html report.

like image 30
parkash ram Avatar answered Sep 22 '22 18:09

parkash ram