我将 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