安装pytest-allure-adaptor后,运行报错:AttributeError: module 'pytest' has no attribute 'allure'


原因:因为pytest-allure-adaptor库基本被python3放弃了,运行很不友好,反正我运行就是报错

解决方法:

先卸载:pip uninstall pytest-allure-adaptor

再安装:pip allure-pytest

然后再去对应case的文件夹下面cmd里面运行: pytest -s -q --alluredir  report  (可以改为你想设的路径,如果是report默认当前目录下),就会生成report文件夹了

posted on 2019-07-05 16:44  gongguanzhong  阅读(2479)  评论(2编辑  收藏  举报