Property-based testing with hypothesis

Date
Type
Talk
Language
English
Length
30 minutes

About this talk

Property-based testing is an approach to writing unit tests where, instead of using specific examples, we focus on specifying properties which we expect to hold in all cases. This allows for systematic checks against a multitude of examples and quickly finding errors and edge cases.

We will introduce Hypothesis, a library which allows for property-based testing in a very succint way by integrating with pytest.