htmlrunner
HTMLRunner for unittest
Feature
- 日志
- 添加图片
- 顺序执行/打乱执行
- 多线程
- 失败重试
- 按日期命名
- 多语言
发送邮件- 按测试类统计
- 统计图
- 执行时间
- 超时时间设置
- 环境信息
- 多次运行结果
- 性能分析
- 不稳定用例
- 标记bug
- 增加稳定性
- 异常解释
- extra信息
- 自定义模板
- email支持格式
发送到飞书、钉钉、企业微信,短信(仅summary),Confluence(hook)- 获取代码数据
- tag实现
- level实现
- timeout实现
- 拦截请求和响应
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
- setup module timeout问题
- not run test duration问题
Metadata
Release files for htmlrunner 0.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| htmlrunner-0.13.tar.gz | 24.8 kB | Details |
Release files / htmlrunner-0.13.tar.gz
| Download URL | htmlrunner-0.13.tar.gz |
|---|---|
| Size | 24.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5baa32e20af4d1ef53daaa54f5d869ccc1a00fc0d0971d0d6486d8c8515781e6
|
|
BLAKE2b-256 checksum How to use checksums |
0514287da2bbd99a680b26d7024ff00b41507b6bf64aa7d17807c411ad622853
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
|