ошибка при запуске pytest-html - pytest.py: error: unrecognized arguments: --html==report.html

Решил попробовать для генерации отчетов pytest-html (pytest-html · PyPI). Но при запуске получаю:
bash-3.2$ python -m pytest test_all_site.py --html==report.html
usage: pytest.py [options] [file_or_dir] [file_or_dir] […]
pytest.py: error: unrecognized arguments: --html==report.html
inifile: None

Можно так попробовать запустить:
py.test test_all_site.py --html==report.html

Мне показалось, или там лишний “=”?

pytest --html=report.html

Спасибо, разобрался.
P.S. Со знаком “=” создается тоже. Проблема была в отсутствии одной библиотеки

А какой библиотеки не хватало? Столкнулся с такой же проблемой.

1 лайк