Property-based testing the Python way - presented by Emma Saroyan
Channel: EuroPython Conference
Date: 2022-10-19

EuroPython 2022 - Property-based testing the Python way - presented by Emma Saroyan

[Liffey Hall 2 on 2022-07-13]


This is an introductory talk about property-based testing. The talk requires some previous knowledge about testing to make the most out of it but if you are new and curious I think you would get something out of it.

The talk approaches a simple problem from two different testing perspectives. Giving you an idea about property-based testing and how it’s different from the traditional approach with Python. 

The main focus of the topic would be Hypothesis and how you can achieve your testing goals with it. 

By the end of this talk you would have a solid understanding of property-based testing with Hypothesis, that would help you decide which testing approach fits your need. 


Given below is a rough overview of the talk structure:

- The testing problem - This is where you would explain the problem statement 
- The traditional approach
- Cons of traditional approach
- What is property-based testing ? 
- Intro to Hypothesis 
- Same problem solution with Hypothesis
- Why choose Hypothesis as a go-to property based testing tool ? 
- Parametrized testing with Pytest vs Hypothesis approach 
- When or when not to use property based testing 
- How can you adopt `hypothesis` in your code base ? Some opinions here."

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License http://creativecommons.org/licenses/by-nc-sa/4.0/