作者的话🍭
我是一个颜值控,同时我也喜欢原生报告的简约风格,
或许只有我知道,这个库被严重低估了。
放眼整个ui自动化领域,有哪个库能把测试报告做得简约优雅的。
-
原生的吗?原生的一堆兼容性问题还巨丑!
-
allure报告吗?fuck!它即繁琐又依赖java,它最不应该被推荐但却人尽皆知。
-
testrunner吗?真的很丑好吗!
-
其它的如poium?它只能搭配固定的库来用,一点也不开源!
我找了很久,一个好看又简约的都没有,于是我自己写一个,一个专属于只要有pytest就能用的测试报告。
几年过去了,从私有仓库变开源了,依旧一个能打的都没有。
这个过程真的写的我想哭,我完全是一个人在战斗,我自己用pyecharts解决了图表各种问题,为了不断优化多模块时的图像展示,我调试了好久好久。还有利用反射解决了无需传递driver,我自己都佩服我自己。为了兼容原生报告,我要深入了解pytest的注册机制,这才趋于完美的。
pytest-html5搭配seliky,让你的自动化之旅如虎添翼。
怎么用💢💢
首先卸载掉以前安装的html报告插件
然后安装它!pip install pytest-html5
然后呢,没有然后,pytest-html5是非侵入式的,不需要你额外写任何配置,不需要conftest,你怎么用pytest-html的,你就怎么用pytest-html5
效果展示
Metadata
Release files for pytest-html5 1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytest_html5-1.6.tar.gz | 354.6 kB | Without provenance | Details for pytest_html5-1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_html5-1.6-py3-none-any.whl | Python 3 | none | any | Details for pytest_html5-1.6-py3-none-any.whl |
Total release size: 709.3 kB
Release files / pytest_html5-1.6.tar.gz
| Download URL | pytest_html5-1.6.tar.gz |
|---|---|
| Size | 354.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b886483a1294a8f3a6bedd0c04615f5ebcd9c5b5b010d162d9316c325e608728
|
|
BLAKE2b-256 checksum How to use checksums |
0ea0a0a7dec4352d1f8802fa65d24a8b2ebfe12c920c162bb07880d5a21e9245
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.9
|
Release files / pytest_html5-1.6-py3-none-any.whl
| Download URL | pytest_html5-1.6-py3-none-any.whl |
|---|---|
| Size | 354.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e19d8eaedce0836f8a4b5fcfb26b45cc90f0eba5b8185d1b44e5e8c03b7a8f21
|
|
BLAKE2b-256 checksum How to use checksums |
7f26ac3f17abcaacfb15cac5e69144e89865e589d2b1ce5e9b5cac1658fd7706
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.9
|
Security for pytest-html5 1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.