问题一:
运行pytest.main(['-vs', r'C:/Users/ityw/PycharmProjects/pythonProject5/testcase/test_11.py', '--alluredir', './report/temp_jsonreport']) 不生成report报告(即xxx.json文件)
解决办法:
pycharm-file-settings-Python Integrated Tools Testing修改为 unittest
问题二:
运行os.system("allure generate ./report/temp_jsonreport -o ./report/html --clean") Allure不生成index.html文件
解决办法:
pycharm以管理员权限运行
问题三:
Allure生成index.html文件,打开一直在loading,无图片展示
解决办法:
在pycharm中index.html选择浏览器打开