pytest-неопознанные аргументы html —html

#python #pytest #pytest-html

Вопрос:

Я использую mac M1 с python 3.9.5 и pytest 6.2.4. Мой pytest не генерирует отчет html. Я пропустил какую-то посылку?

 %pip list
Package         Version
--------------- -------
attrs           21.2.0
iniconfig       1.1.1
packaging       20.9
pip             21.1.2
pluggy          0.13.1
py              1.10.0
pyparsing       2.4.7
pytest          6.2.4
pytest-html     3.1.1
pytest-metadata 1.11.0
setuptools      56.0.0
toml            0.10.2

%pytest --html=report.html --self-contained-html

ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: unrecognized arguments: --html=report.html --self-contained-html
  inifile: None
 

Комментарии:

1. Есть ли у вас html-3.1.1 список плагинов, если вы запускаете pytest без аргументов?