unittestreport介绍
说明
本项目是在unittestreport的基础上增加了截图功能。在生成的最终的报告中可以看到截图,并支持多图切换。原项目地址:https://github.com/musen123/UnitTestReport
上传到pypi:
python setup.py sdist bdist_wheel
twine upload dist/*
修改setup.py文件,将版本号修改为最新的版本号
1、什么是unittestreport
unittestreport是基于unittest开发的的一个功能扩展库,关于unittestreport最初在开发的时候,最初只是计划开发一个unittest生成html测试报告的模块,所以起名叫做unittestreport。在开发的过程中结合使用者的反馈,慢慢的扩展了更多的功能进去。后续还会持续的扩展和开发一些新的功能,目前实现了以下功能:
- HTML测试报告生成
- unittest数据驱动
- 测试用例失败重运行
- 多线程并发执行用例
- 发送测试结果及报告到邮箱
- 测试结果推送到钉钉
- 测试结构推送到企业微信
2、安装unittestreport
unittestreport是基于python3.6开发的,安装前请确认你的python版本>3.6
-
安装命令
pip install unittestreport -
说明:原报告模板中的CDN站点失效了,已在
1.4.2版中进行了更换,如果生成的报告样式和图表丢失,请升级unittestreport版本pip install unittestreport==1.4.2
3、使用文档
使用文档地址:https://unittestreport.readthedocs.io/en/latest/
使用问题及维护:
Changelog
Changelog
[0.1.45] - 2025-03-11
Fixed
- 修复了并发写入history.json导致json文件格式错误问题
Release files for unittestreport-yami 0.1.53
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| unittestreport_yami-0.1.53.tar.gz | 56.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| unittestreport_yami-0.1.53-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 120.5 kB
Release files / unittestreport_yami-0.1.53.tar.gz
| Download URL | unittestreport_yami-0.1.53.tar.gz |
|---|---|
| Size | 56.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
14af1775315eb18595886f51d613fff2eadeb3d41fddb6f7b4126c380802460b
|
|
BLAKE2b-256 checksum How to use checksums |
23d47396f32854b8bf7c14e983de11285c5df58372802c92c77c4b713a2be7a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.15
|
Release files / unittestreport_yami-0.1.53-py3-none-any.whl
| Download URL | unittestreport_yami-0.1.53-py3-none-any.whl |
|---|---|
| Size | 63.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
21498e265f660e52545f66815ca5f0d0e9b9a0a93ce8e0ee6c9c6b27b03a6b09
|
|
BLAKE2b-256 checksum How to use checksums |
94c889a1142bd386fd75036ec26bb5f3cd5435f63ab727454f0db73568beaa40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.15
|