安装

pip install PyTestReport

pytest框架执行命令

    pytest.main(["-s", "test_login.py", "--pytest_report", "Report.html"])
使用这个第三方报告,这个命令是必须添加。"--pytest_report" ,后面指定报告路径

这个报告也支持二次开发,具体再另行百度吧

想用pytest自带的框架,不知道什么梗,总是参数错误,就找了一个这个报告,用起来还挺方便

 报告截图 

 

PyTestReport自动化报告使用说明

 

相关文章:

  • 2021-05-31
  • 2021-11-30
  • 2021-11-30
  • 2021-11-30
  • 2022-12-23
  • 2021-11-30
  • 2021-11-30
猜你喜欢
  • 2022-12-23
  • 2021-09-13
  • 2021-08-13
  • 2021-12-08
  • 2021-05-30
  • 2021-09-16
相关资源
相似解决方案