讲座和教程¶
书籍¶
讲座和博客文章¶
培训:pytest - 使用 Python 进行简单、快速且有趣的测试,Florian Bruhin,PyConDE 2022
pytest:使用 Python 进行简单、快速且有趣的测试, (@ 4:22:32),Florian Bruhin,WeAreDevelopers World Congress 2021
网络研讨会:pytest:面向 Python 的测试驱动开发 (德语),Florian Bruhin,通过 mylearning.ch,2020
网络研讨会:使用 Fixtures 简化您的测试,Oliver Bestwalter,通过 JetBrains,2020
培训:pytest 简介 - 使用 Python 进行简单、快速且有趣的测试,Florian Bruhin,PyConDE 2019
使用 pytest 框架轻松测试 PySide/PyQt 代码,Florian Bruhin,Qt World Summit 2019 (幻灯片, 录像)
pytest:Python 和 Django 测试的建议,基本包,Andreu Vallbona,PyBCN 2019 年 6 月.
pytest:Python 和 Django 测试的建议,基本包,Andreu Vallbona,PyconES 2017 (英文幻灯片, 西班牙语视频)
关于 pytest 的 3 部分博客系列,来自 @pydanny 别名 Daniel Greenfeld (2014 年 1 月)
pytest:帮助您编写更好的 Django 应用程序,Andreas Pelme,DjangoCon Europe 2014.
使用 py.test 进行 Pythonic 测试,Vinicius Belchior Assef Neto,Plone Conf 2013,巴西.
Brianna Laugher 在 pycon australia 2012 上的 pytest 演讲 (视频, 幻灯片, 代码)
正确地进行 monkey patching (博客文章,请查阅 monkeypatch 插件 以获取最新 API)
测试参数化
参数化测试,通用化 (博客文章)
将测试钩子放入本地或全局插件 (博客文章)
断言内省
分布式测试
在所有平台上同时测试您的代码 (博客文章)
插件特定示例
pytest 中默认跳过慢速测试 (博客文章)