HTMLReport使用1 | HTMLReport简介和安装

274 阅读1分钟

1 HTMLReport简介

  • HTMLReport是一个单元测试测试运行器,可以将测试结果保存在 Html 文件中。
  • 官网链接:pypi.org/project/HTM…
  • 作者:刘士,作者主页pypi.org/user/liushi…
  • HTMLReport Unittest HTML报告生成器。

2 环境要求

  • 仅支持Python 3.x

3 安装

pip install HTMLReport
C:\Users\Administrator>pip install HTMLReport
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting HTMLReport
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ea/f5/b95ada8e79548e60b690207f41f18aedc9bdacafce7afaa91aefeb514b18/HTMLReport-2.3.1-py3-none-any.whl (33 kB)
Installing collected packages: HTMLReport
Successfully installed HTMLReport-2.3.1

C:\Users\Administrator>

4 报告模板样式

在这里插入图片描述 在这里插入图片描述