1.下载,解压,配置path路径
https://github.com/allure-framework/allure2/releases
https://github.com/allure-framework/allure2
path路径配置:E:\allure-2.13.7\bin
验证:allure --version
问题:dos可以验证但是pycharm验证失败,怎么办,重启pycharm就OK了
2.加入命令生成json格式的临时报告。
--alluredir ./temp
3.生成allure报告
os.system(‘allure generate ./temp -o ./report --clean’)
allure generate 命令,固定的
./temp 临时的json格式报告的路径
-o 输出output
./report 生成的allure报告的路径
--clean 清空./report路径原来的报告