pytest执行时:
Python 3.6.6, pytest-5.2.2, py-1.8.0, pluggy-0.13.0
rootdir: D:\eclipse-workspace
plugins: allure-adaptor-1.7.10, html-2.0.0, metadata-1.8.0, pythonpath-0.7.3
报错:
pluggy.manager.PluginValidationError: unknown hook ‘pytest_namespace’ in plugin
<module ‘allure.pytest_plugin’ from ‘d:\python36\lib\site-packages\allure\pytest_plugin.py’>
根据网上的资料说是pytest版本过高,要用4.0.2版本
所以重新安装pytest4.0.2。执行又出错:
报错
Requirement already satisfied: zipp>=0.5 in d:\python36\lib\site-packages (from importlib-metadata>=0.12; python_version < “3.8”->pluggy>=0.7->pytest==4.0.2) (0.6.0)
ERROR: pytest-html 2.0.0 has requirement pytest>=5.0, but you’ll have pytest 4.0.2 which is incompatible.
重新安装pytest-html 1.3版本
又出错:
Traceback (most recent call last):
File “d:\python36\lib\runpy.py”, line 193, in run_module_as_main
“<