安裝pytest-allure-adaptor後,運行報錯:AttributeError: module 'pytest' has no attribute 'allure'


緣由:由於pytest-allure-adaptor庫基本被python3放棄了,運行很不友好,反正我運行就是報錯html

解決方法:python

先卸載:pip uninstall pytest-allure-adaptorapp

再安裝:pip allure-pytesturl

而後再去對應case的文件夾下面cmd裏面運行: pytest -s -q --alluredir  report  (能夠改成你想設的路徑,若是是report默認當前目錄下),就會生成report文件夾了spa

相關文章
相關標籤/搜索