Appendix 3Plugin Sampler Pack
Plugins are the booster rockets that enable you to get even more power out of pytest. So many useful plugins are available, it’s difficult to pick just a handful to showcase. You’ve already seen the pytest-cov plugin in Coverage.py: Determining How Much Code Is Tested, and the pytest-mock plugin in mock: Swapping Out Part of the System. The following plugins give you just a taste of what else is out there.
All of the plugins featured here are available on PyPI and are installed with pip install <plugin-name>.
Get Python Testing with pytest now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.