3
7
13
新手上路
提示:若要⽣成xml⽂件,可将--html=./report.html改成--junitxml= report/report.xml
提示: 命令⾏参数:pytest --alluredir report,是在执⾏命令⽬录⽣成report⽂件夹,⽂件夹下包含xml⽂件。 将pytest.ini文件中的生成报告的命令替换成--alluredir report,在命令行中运行pytest即可生成报告格式为json格式,保存在项目文件的report文件夹中。
注意:以执行命令的目录为相对路径。
提示:Allure测试报告支持自定义修改。
使用道具 举报
6
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|香雨站
GMT+8, 2025-7-1 18:04 , Processed in 0.084550 second(s), 23 queries .
Powered by Discuz! X3.4
© 2001-2013 Comsenz Inc.. 技术支持 by 巅峰设计