No project description provided
Project description
pytest-chinesereport
1、pytest-chinesereport介绍
pytest-chinesereport 是一个针对 pytest 生成中文版 html 报告的插件,基于 pytest-testreport 进行了优化及 bug 修复,安装好pytest-chinesereport之后,运行用例时加上参数即可生成报告
注意点:如果安装了 pytest-html 这个插件,请先卸载,不然会有冲突
注意点:如果安装了 pytest-testreport 这个插件,请先卸载,不然会有冲突
使用案例:
-
命令行执行: pytest 运行测试时加上参数--report 指定报告文件名
# 指定报告文件名 pytest --report=report.html #其他配置参数 --title=指定报告标题 --tester=指定报告中的测试者 --desc = 指定报告中的项目描述 # 同时使用多个参数 pytest --report=report.html --title=测试报告 --tester=测试人员 --desc=项目描述
-
pytest.main执行
import pytest pytest.main(['--report=report.html', '--title=测试报告标题', '--tester=测试人员', '--desc=报告描述信息'])
2、安装pytest-chinesereport
pytest-chinesereport是基于python3.6开发的,安装前请确认你的python版本>3.6
安装命令
pip install pytest-chinesereport
3、使用文档:
https://unittestreport.readthedocs.io/en/latest/doc9_pytest/
备注:
-
基于 pytest-testreport 进行 bug 修复及优化
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytest_chinesereport-1.0.1.tar.gz.
File metadata
- Download URL: pytest_chinesereport-1.0.1.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46f1632c0a585b674192a34ed9635a9f0eebc8a28db8835724993a1b7eac5842
|
|
| MD5 |
65e675b6919b50d62cb0e6db69117382
|
|
| BLAKE2b-256 |
bbc1862b5313a0d2e08bccbdb1075675e4e96efe57446c40c41ea44eca0ead8f
|
File details
Details for the file pytest_chinesereport-1.0.1-py3-none-any.whl.
File metadata
- Download URL: pytest_chinesereport-1.0.1-py3-none-any.whl
- Upload date:
- Size: 18.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a16db658e21ef805bedee8e7ec42a72ac386e7f31593b32e5fa5612d867eefb
|
|
| MD5 |
6aaa43300a357d14c10b0024b27664b5
|
|
| BLAKE2b-256 |
2caf1c2cde6ab88cd28d9f8a9035dd9dd907a64079c40f4fc0fc3d8a8fd1ea2c
|