前言:pytest-HTML是一个插件,pytest用于生成测试结果的HTML报告.兼容Python 2.7,3.6 1.github上源码地址[https://github.com/pytest-dev/pytest-html] 2.pip安装 pip install pytest-html 3.执行方法 pytest --html=report.html html报告 1.打开cmd,cd到需要执行pytest用例的目录,执行指令:pytest --html=report.html 2.执行…