Skip to main content

img

作者的话🍭

我是一个颜值控,同时我也喜欢原生报告的简约风格,

或许只有我知道,这个库被严重低估了。

放眼整个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

效果展示

img

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest_html5-1.6.tar.gz (354.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_html5-1.6-py3-none-any.whl (354.7 kB view details)

Uploaded Python 3

File details

Details for the file pytest_html5-1.6.tar.gz.

File metadata

  • Download URL: pytest_html5-1.6.tar.gz
  • Upload date:
  • Size: 354.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.9

File hashes

Hashes for pytest_html5-1.6.tar.gz
Algorithm Hash digest
SHA256 b886483a1294a8f3a6bedd0c04615f5ebcd9c5b5b010d162d9316c325e608728
MD5 34fc890c5990fcaaa5c9d178643286f7
BLAKE2b-256 0ea0a0a7dec4352d1f8802fa65d24a8b2ebfe12c920c162bb07880d5a21e9245

See more details on using hashes here.

File details

Details for the file pytest_html5-1.6-py3-none-any.whl.

File metadata

  • Download URL: pytest_html5-1.6-py3-none-any.whl
  • Upload date:
  • Size: 354.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.9

File hashes

Hashes for pytest_html5-1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e19d8eaedce0836f8a4b5fcfb26b45cc90f0eba5b8185d1b44e5e8c03b7a8f21
MD5 64c01107371d2743d61846ede0902fd4
BLAKE2b-256 7f26ac3f17abcaacfb15cac5e69144e89865e589d2b1ce5e9b5cac1658fd7706

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.6

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page