安装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文件夹了

相关文章:

  • 2021-06-11
  • 2022-12-23
  • 2021-06-07
  • 2021-09-30
  • 2021-07-01
  • 2022-12-23
  • 2022-12-23
  • 2021-09-25
猜你喜欢
  • 2022-01-26
  • 2021-07-17
  • 2022-12-23
  • 2022-12-23
  • 2021-05-17
  • 2021-12-20
相关资源
相似解决方案