Darya Tratseuskaya
Darya Tratseuskaya

Reputation: 201

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

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

Upvotes: 20

Views: 20648

Answers (3)

Tribhuwan Bhatta
Tribhuwan Bhatta

Reputation: 121

pip install pytest-html

pip install pytest-xdist

Upvotes: 0

Dinko Pehar
Dinko Pehar

Reputation: 6061

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.

Upvotes: 30

parkash ram
parkash ram

Reputation: 41

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

Upvotes: 4

Related Questions