美文网首页
pytest+allure命令行生成报告

pytest+allure命令行生成报告

作者: Riclue | 来源:发表于2021-02-08 17:25 被阅读0次
  • 生成allure报告
pytest -s -q --alluredir [xml_report_path] 
  • 生成离线allure报告
allure generate [xml_report_path] -o [html_report_path]
  • 启动服务allure报告
allure  serve   [xml_report_path] 

[xml_report_path]根据自己需要定义文件夹,如:/report/xml
[html_report_path]根据自己需要定义文件夹,例如:/report/html

相关文章

网友评论

      本文标题:pytest+allure命令行生成报告

      本文链接:https://www.haomeiwen.com/subject/vkogiktx.html