All Projects → luizyao → Pytest Chinese Doc

luizyao / Pytest Chinese Doc

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

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Pytest Chinese Doc

Python Pytest Cases
Separate test code from test cases in pytest.
Stars: ✭ 127 (-33.85%)
Mutual labels:  pytest
Automationtest
Pytest测试框架,UI, API, DataBase,部分功能已封装,可根据实际需求修改
Stars: ✭ 159 (-17.19%)
Mutual labels:  pytest
Pytest Flask Sqlalchemy
A pytest plugin for preserving test isolation in Flask-SQLAlchemy using database transactions.
Stars: ✭ 168 (-12.5%)
Mutual labels:  pytest
Pytest Check
A pytest plugin that allows multiple failures per test.
Stars: ✭ 131 (-31.77%)
Mutual labels:  pytest
Testbook
🧪 📗 Unit test your Jupyter Notebooks the right way
Stars: ✭ 146 (-23.96%)
Mutual labels:  pytest
Pytest Tricks
😏 Tips and Tricks for the Python Testing Tool
Stars: ✭ 162 (-15.62%)
Mutual labels:  pytest
Kubetest
Kubernetes integration testing in Python via pytest
Stars: ✭ 122 (-36.46%)
Mutual labels:  pytest
Cookiecutter Pytest Plugin
A Cookiecutter template for pytest plugins 💻
Stars: ✭ 181 (-5.73%)
Mutual labels:  pytest
Machine Learning With Python
Practice and tutorial-style notebooks covering wide variety of machine learning techniques
Stars: ✭ 2,197 (+1044.27%)
Mutual labels:  pytest
Awesome Pytest
A curated list of awesome pytest resources
Stars: ✭ 170 (-11.46%)
Mutual labels:  pytest
Pytest Datadir
pytest plugin for manipulating test data directories and files
Stars: ✭ 135 (-29.69%)
Mutual labels:  pytest
Pytest Parallel
A pytest plugin for parallel and concurrent testing
Stars: ✭ 146 (-23.96%)
Mutual labels:  pytest
Usaspending Api
Server application to serve U.S. federal spending data via a RESTful API
Stars: ✭ 166 (-13.54%)
Mutual labels:  pytest
Pytest Describe
Describe-style plugin for the pytest framework
Stars: ✭ 128 (-33.33%)
Mutual labels:  pytest
Pytest Lazy Fixture
It helps to use fixtures in pytest.mark.parametrize
Stars: ✭ 179 (-6.77%)
Mutual labels:  pytest
Python Blueprint
🐍 Example Python project using best practices 🔩
Stars: ✭ 123 (-35.94%)
Mutual labels:  pytest
Allure Pytest
Deprecated, please use https://github.com/allure-framework/allure-python instead
Stars: ✭ 159 (-17.19%)
Mutual labels:  pytest
Django Test Migrations
Test django schema and data migrations, including migrations' order and best practices.
Stars: ✭ 188 (-2.08%)
Mutual labels:  pytest
Seleniumbase
A Python framework that inspires developers to become better test automation engineers. 🧠💡
Stars: ✭ 2,520 (+1212.5%)
Mutual labels:  pytest
Pudb
Full-screen console debugger for Python
Stars: ✭ 2,267 (+1080.73%)
Mutual labels:  pytest

pytest-chinese-doc

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

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

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

环境

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

使用

  • git clone [email protected]: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源码

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

    pytest-pyppeteer: Test with pyppeteer in pytest.

LICENSE

MIT LICENSE

其它获取途径

Breaking Changes

(2020-02-03)

  • 使用requirements.txt代替pipenv管理虚拟环境 (0b0bb24)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].