allure报告生成报告时提示unrecognized arguments:--alluredir=Outputs/allure 解决办法
from allure_pytest import plugin as allure_plugin args = ['-s', '-v', '--alluredir=allure_result', test_path] pytest.main(args=args, plugins=[allure_plugin]) os.system(allure generate Output/allure -o /Output/allure_html --clean)
网上找的方法,亲测好用