Add property-based testing to your development toolbox and impress your co-workers with unbreakable code.
Are you annoyed having to adjust a truck load of copied and pasted tests for a tiny change in production code? Do you hate that your software breaks in unexpected ways in spite the enormous amount of tests you frequently write?
Bulletproof Python: Property-Based Testing with Hypothesis equips you with an effective technique to improve the robustness of software while at the same time making it easier to maintain.
As a Python consultant I had the pleasure to work with many different teams in various industries. None of them practiced property-based testing and only a handful of them were familiar with the concept. When they were introduced to the basics and the appropriate tools, every single team embraced property-based testing, because they recognized its positive effect on software robustness and code maintainability.
The concept of PBT has been around for some time, but the available learning resources for Python developers are limited. This is the first book to provide a comprehensive introduction to property-based testing in Python.
If you're a Python developer that takes pride in their craftsmanship and you want to take your software from annoying to bulletproof, this book is for you.
Bulletproof Python: Property-Based Testing with Hypothesis strikes a balance between practical information on the Hypothesis testing framework and language-agnostic concepts. The material includes: