htmlrunner for unittest
Project description
htmlrunner
HTMLRunner for unittest
Feature
- 日志
- 添加图片
- <input type="checkbox" checked="" disabled="" /> 顺序执行/打乱执行
- <input type="checkbox" checked="" disabled="" /> 多线程
- 失败重试
- <input type="checkbox" checked="" disabled="" /> 按日期命名
- 多语言
发送邮件- <input type="checkbox" checked="" disabled="" /> 按测试类统计
- 统计图
- <input type="checkbox" checked="" disabled="" /> 执行时间
- <input type="checkbox" checked="" disabled="" /> 超时时间设置
- <input type="checkbox" checked="" disabled="" /> 环境信息
- 多次运行结果
- 性能分析
- 不稳定用例
- 标记bug
- 增加稳定性
- 异常解释
- <input type="checkbox" checked="" disabled="" /> extra信息
- <input type="checkbox" checked="" disabled="" /> 自定义模板
- email支持格式
发送到飞书、钉钉、企业微信,短信(仅summary),Confluence(hook)- <input type="checkbox" checked="" disabled="" /> 获取代码数据
- <input type="checkbox" checked="" disabled="" /> tag实现
- <input type="checkbox" checked="" disabled="" /> level实现
- <input type="checkbox" checked="" disabled="" /> timeout实现
- <input type="checkbox" disabled="" /> 拦截请求和响应
Install
pip install htmlrunner
Simple Use
from htmlrunner import HTMLRunner suite = unittest.defaultTestLoader.discover('.') HTMLRunner(output="report_%Y%m%d_%H%M%S.html", title="测试报告", description="测试报告描述", tester='Hzc').run(suite)
Todo
- <input type="checkbox" disabled="" /> setup module timeout问题
- <input type="checkbox" checked="" disabled="" /> not run test duration问题
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size htmlrunner-0.13.tar.gz (24.8 kB) | File type Source | Python version None | Upload date | Hashes View |