2
8
16
新手上路
提示:若要⽣成xml⽂件,可将--html=./report.html改成--junitxml= report/report.xml
提示: 命令⾏参数:pytest --alluredir report,是在执⾏命令⽬录⽣成report⽂件夹,⽂件夹下包含xml⽂件。 将pytest.ini文件中的生成报告的命令替换成--alluredir report,在命令行中运行pytest即可生成报告格式为json格式,保存在项目文件的report文件夹中。
注意:以执行命令的目录为相对路径。
提示:Allure测试报告支持自定义修改。
使用道具 举报
1
14
24
本版积分规则 发表回复 回帖后跳转到最后一页