windows 下 pytest allure 配置

环境

  • pytest(pip 安装)
  • allure-pytest(pip 安装)
  • allure 命令行工具安装

allure 命令行工具配置(把结果文件转成 html)

使用步骤

  • 命令行运行 pytest test_1.py --alluredir ./report/xml
  • 查看测试报告 allure serve ./report/xml
  • 生成 html 报告 allure generate ./report/xml -o ./report/html --clean
    `
posted @ 2021-06-15 22:26  biubiubiu83  Views(87)  Comments(0Edit  收藏  举报