pytest-html-cn


Namepytest-html-cn JSON
Version 3.1.3 PyPI version JSON
download
home_pagehttps://github.com/hanzhichao/pytest-html-cn
Summarypytest plugin for generating HTML reports
upload_time2024-08-19 04:12:35
maintainerNone
docs_urlNone
authorHan Zhichao
requires_python>=3.6
licenseMozilla Public License 2.0 (MPL 2.0)
keywords py.test pytest html report
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pytest-html-cn
![Languate - Python](https://img.shields.io/badge/language-python-blue.svg)
![PyPI - License](https://img.shields.io/pypi/l/pytest-html-cn)
![PyPI](https://img.shields.io/pypi/v/pytest-html-cn)
![PyPI - Downloads](https://img.shields.io/pypi/dm/pytest-html-cn)

pytest-html中文版,用于pytest测试执行后,生成HTML测试报告。

## 安装方法
```shell
pip install pytest-html-cn
```
## 使用方式

**test_demo.py**
```python
def test_a():
    pass
    
def test_b():
    pass
```
使用方法
```shell
pytest test_demo.py --html=测试报告.html
```
生成报告如下

![pytest-html-cn](./docs/pytest-html-cn.png)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hanzhichao/pytest-html-cn",
    "name": "pytest-html-cn",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "py.test pytest html report",
    "author": "Han Zhichao",
    "author_email": "superhin@126.com",
    "download_url": "https://files.pythonhosted.org/packages/6b/6d/2cbf124da3ad23ed2e58440ae87e48f20a5dc2e1c81e8725d447a395ec91/pytest_html_cn-3.1.3.tar.gz",
    "platform": null,
    "description": "# pytest-html-cn\n![Languate - Python](https://img.shields.io/badge/language-python-blue.svg)\n![PyPI - License](https://img.shields.io/pypi/l/pytest-html-cn)\n![PyPI](https://img.shields.io/pypi/v/pytest-html-cn)\n![PyPI - Downloads](https://img.shields.io/pypi/dm/pytest-html-cn)\n\npytest-html\u4e2d\u6587\u7248,\u7528\u4e8epytest\u6d4b\u8bd5\u6267\u884c\u540e\uff0c\u751f\u6210HTML\u6d4b\u8bd5\u62a5\u544a\u3002\n\n## \u5b89\u88c5\u65b9\u6cd5\n```shell\npip install pytest-html-cn\n```\n## \u4f7f\u7528\u65b9\u5f0f\n\n**test_demo.py**\n```python\ndef test_a():\n    pass\n    \ndef test_b():\n    pass\n```\n\u4f7f\u7528\u65b9\u6cd5\n```shell\npytest test_demo.py --html=\u6d4b\u8bd5\u62a5\u544a.html\n```\n\u751f\u6210\u62a5\u544a\u5982\u4e0b\n\n![pytest-html-cn](./docs/pytest-html-cn.png)\n",
    "bugtrack_url": null,
    "license": "Mozilla Public License 2.0 (MPL 2.0)",
    "summary": "pytest plugin for generating HTML reports",
    "version": "3.1.3",
    "project_urls": {
        "Homepage": "https://github.com/hanzhichao/pytest-html-cn"
    },
    "split_keywords": [
        "py.test",
        "pytest",
        "html",
        "report"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6b6d2cbf124da3ad23ed2e58440ae87e48f20a5dc2e1c81e8725d447a395ec91",
                "md5": "81f5d6a8b4999eea91e8aeb322684638",
                "sha256": "54bc7b1f7bceafc32898bd23930b77f4cc2d3731bd0c8dddfac62b4bea5f9383"
            },
            "downloads": -1,
            "filename": "pytest_html_cn-3.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "81f5d6a8b4999eea91e8aeb322684638",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 22430,
            "upload_time": "2024-08-19T04:12:35",
            "upload_time_iso_8601": "2024-08-19T04:12:35.120428Z",
            "url": "https://files.pythonhosted.org/packages/6b/6d/2cbf124da3ad23ed2e58440ae87e48f20a5dc2e1c81e8725d447a395ec91/pytest_html_cn-3.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-19 04:12:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hanzhichao",
    "github_project": "pytest-html-cn",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pytest-html-cn"
}
        
Elapsed time: 0.36057s