生成html测试报告
pip install pytest-html # 通过pip安装pytest-html
import os
# 项目路径
project_path=os.path.split(os.path.split(os.path.realpath(__file__))[0])[0]
#html报告路径
htmlreport_dir = os
生成html测试报告
pip install pytest-html # 通过pip安装pytest-html
import os
# 项目路径
project_path=os.path.split(os.path.split(os.path.realpath(__file__))[0])[0]
#html报告路径
htmlreport_dir = os