Metadata-Version: 2.2
Name: pytest-chinesereport
Version: 1.0.6
Home-page: https://github.com/XueyuanQiao/pytest-chinesereport
Author: qiao
Author-email: 1336582921@qq.com
Maintainer: qiao
Maintainer-email: 1336582921@qq.com
License: MIT
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: Pytest
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Testing
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.5
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pytest>=3.5.0
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: maintainer
Dynamic: maintainer-email
Dynamic: requires-dist
Dynamic: requires-python

# pytest-chinesereport

### 1、pytest-chinesereport介绍

pytest-chinesereport 是一个针对 pytest 生成中文版 html 报告的插件，基于 pytest-testreport 进行了优化及 bug 修复，安装好pytest-chinesereport之后，运行用例时加上参数即可生成报告

###### 注意点：如果安装了 pytest-html 这个插件，请先卸载，不然会有冲突
###### 注意点：如果安装了 pytest-testreport 这个插件，请先卸载，不然会有冲突

##### 使用案例：

- ###### 命令行执行： pytest 运行测试时加上参数--report 指定报告文件名

    ```shell
    # 指定报告文件名
    pytest --report=report.html
    
    #其他配置参数
    --title=指定报告标题
    --tester=指定报告中的测试者
    --desc = 指定报告中的项目描述
    
    # 同时使用多个参数
    pytest --report=report.html --title=测试报告 --tester=测试人员 --desc=项目描述
    ```
    
- ###### pytest.main执行

    ```shell
    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 修复及优化

