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

使用pip list来检查,如果你已经pytest-html安装了。如果不是,请安装  pip install pytest-html

pytest-html 是pytest的插件,不属于pytest库。

原文地址:https://www.cnblogs.com/lizhe860/p/14365969.html