PPT
源码
内容
allure报告配置
- Jenkins安装allure插件
- 保证执行节点(从节点) 有allure环境
- 在Jenkins中配置 allure 环境路径
- 不要直接抄,按照自己的配置来
# 打印当前路径,印证是否处于宿主机的环境
$echo pwd
# 进入项目路径,
cd hogwartssdet19
# 执行脚本 1. Jenkins Junit.xml 报告,解析Junit报告数据,获取报告信息 2. allure
$echo pwd
# 指定生成allure报告的路径,一定要和allure-results指定的路径相同
python3 -m pytest test_pytest/tests/test_tag.py --alluredir=././allure-results