pycharm设置的 默认测试运行程序为:pytest,进行运用就不会生成allure报告,需要修改成unittest 可以看到并没有运行到allure报告生成 设置修改成unittest 在看下,就运行成功了