- Pytest:帮助您编写更好的程序
- 完整的 Pytest 文档
- 安装和入门
- 使用和调用
- 在现有测试套件中使用 pytest
- 测试中断言的编写和报告
- Pytest 夹具:显式、模块化、可扩展
- 用属性标记测试函数
- MonkeyPatching / Mocking 模块和环境
- 临时目录和文件
- 捕获 stdout/stderr 输出
- 捕获警告
- 模块和测试文件的 Doctest 集成
- 跳过和 xfail:处理无法成功的测试
- 参数化夹具和测试功能
- 缓存:使用交叉测试运行状态
- UnitTest.TestCase 支持
- 运行为鼻子编写的测试
- 经典的 Xunit 风格设置
- 安装和使用插件
- 编写插件
- 登录
- 良好的集成实践
- 古怪的测试
- Pytest 导入机制和 sys.path/PYTHONPATH
- 设置 bash 完成
- API 引用
- _pytest.hookspec
- _pytest.python_api
- _pytest.outcomes
- _pytest.config
- _pytest.mark
- _pytest.recwarn
- _pytest.assertion
- _pytest.freeze_support
- _pytest.fixtures
- _pytest.cacheprovider
- _pytest.capture
- _pytest.doctest
- _pytest.junitxml
- _pytest.logging
- _pytest.monkeypatch
- _pytest.pytester
- _pytest.tmpdir
- _pytest.python
- _pytest.nodes
- _pytest.reports
- _pytest._code.code
- _pytest.config.argparsing
- _pytest.main
- pluggy.callers
- _pytest.config.exceptions
- py.test 2.0.0:断言++、UnitTest++、Reporting++、Config++、Docs++
- 示例和自定义技巧
- 配置
- 贡献开始
- 向后兼容策略
- Python 2.7 和 3.4 支持
- 企业版 pytest
- 项目实例
- 历史笔记
- 弃用和移除
- 发展指南
- 演讲和辅导
演讲和辅导
书
pytest Quick Start Guide, by Bruno Oliveira (2018) <https://www.packtpub.com/web-development/pytest-quick-start-guide>
_.Python Testing with pytest, by Brian Okken (2017) <https://pragprog.com/book/bopytest/python-testing-with-pytest>
_.
会谈和博客帖子
网络研讨会: pytest: Test Driven Development für Python (German) 佛罗里安布鲁欣我的学习.ch2020年
网络研讨会: Simplify Your Tests with Fixtures ,Oliver Bestwalter,via JetBrains,2020年
培训: Introduction to pytest - simple, rapid and fun testing with Python 弗罗里安布鲁欣,皮康德2019
精简元编程经典-本集:pytest,Oliver Bestwalter,PyConDE 2019 (repository _, recording )
使用PyQt/Bruqt测试框架轻松测试2019年的PyQt/Bruqt测试框架 (slides _, recording )
pytest: recommendations, basic packages for testing in Python and Django, Andreu Vallbona, PyBCN June 2019 <https://www.slideshare.net/AndreuVallbonaPlazas/pybcn-pytest-recomendaciones-paquetes-bsicos-para-testing-en-python-y-django>
_.Pytest:关于在python和django中进行测试的建议和基本包,Andreu Vallbona,Pycones 2017 (slides in english , video in spanish )
pytest advanced, Andrew Svetlov (Russian, PyCon Russia, 2016) <https://www.youtube.com/watch?v=7KgihdKTWY4>
_.Pythonic testing, Igor Starikov (Russian, PyNsk, November 2016) <https://www.youtube.com/watch?v=_92nfdd5nK8>
_.pytest - Rapid Simple Testing, Florian Bruhin, Swiss Python Summit 2016 <https://www.youtube.com/watch?v=rCBHkQ_LVIs>
_.Improve your testing with Pytest and Mock, Gabe Hollombe, PyCon SG 2015 <https://www.youtube.com/watch?v=RcN26hznmk4>
_.Introduction to pytest, Andreas Pelme, EuroPython 2014 <https://www.youtube.com/watch?v=LdVJj65ikRY>
_.Advanced Uses of py.test Fixtures, Floris Bruynooghe, EuroPython 2014 <https://www.youtube.com/watch?v=IBC_dxr-4ps>
_.Why i use py.test and maybe you should too, Andy Todd, Pycon AU 2013
3-part blog series about pytest from @pydanny alias Daniel Greenfeld (January 2014)
pytest: helps you write better Django apps, Andreas Pelme, DjangoCon Europe 2014 <https://www.youtube.com/watch?v=aaArYVh6XSM>
_.Testing Django Applications with pytest, Andreas Pelme, EuroPython 2013 <https://www.youtube.com/watch?v=aUf8Fkb7TaY>
_.Testes pythonics com py.test, Vinicius Belchior Assef Neto, Plone Conf 2013, Brazil <https://www.youtube.com/watch?v=QUKoq2K7bis>
_.Introduction to py.test fixtures, FOSDEM 2013, Floris Bruynooghe <https://www.youtube.com/watch?v=bJhRW4eZMco>
_.pytest feature and release highlights, Holger Krekel (GERMAN, October 2013)
Pycon Australia 2012来自Brianna Lauher的Pytest演讲 (video , slides , code )
monkey patching done right (博客帖子,咨询 monkeypatch plugin 对于最新的API)
测试参数化:
generating parametrized tests with fixtures
_.
断言反省:
分布式测试:
插件特定示例:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论