luizyao / pytest-chinese-doc

pytest 官方文档的中文翻译,但不仅仅是单纯的翻译,也包含自己的理解和实践。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pytest-chinese-doc

pytest官方文档(5.1.3版本)的中文翻译,但不仅仅是简单的翻译:

  • 更多的例子,尽量做到每一知识点都有例子;
  • 更多的拓展阅读,部分章节添加了作者学习时,所查阅的资料;

所以这也是作者自身学习pytest的历程,希望能有更多的人了解这款优秀的测试框架;

环境

  • pytest版本:5.1.3
  • python版本:3.7.3

使用

  • git clone git@github.com:luizyao/pytest-chinese-doc.git仓库:

    docs/目录下包含所有的文章,以markdown格式编写;

    src/目录下包含所有的示例源码,以章节划分;

  • 进入项目的根目录下,执行以下命令:

    $ python3 -m venv .venv-5.1.3  # 使用虚拟环境
    $ source .venv-5.1.3/bin/activate  # 激活虚拟环境,不同的操作系统命令可能不一样
    $ pip install -r requirements.txt  # 安装依赖
    $ pytest --version  # 查看当前pytest的版本

目录

TODO

  • 阅读pytest源码

  • 基于pytest,实践一个WEB自动化框架

    pytest-pyppeteer: Test with pyppeteer in pytest.

LICENSE

MIT LICENSE

其它获取途径

Breaking Changes

(2020-02-03)

  • 使用requirements.txt代替pipenv管理虚拟环境 (0b0bb24)

About

pytest 官方文档的中文翻译,但不仅仅是单纯的翻译,也包含自己的理解和实践。

License:MIT License


Languages

Language:Python 100.0%