Emma Saroyan
Emma is a developer advocate at Alpaca. She enjoys sharing her knowledge and learning from fellow developers.
Session
07-13
15:30
30min
Property-based testing the Python way
Emma Saroyan
What if I told you you could write simpler tests but still get better results ?
What if I told you can automatically generate your test data ?
This may sound difficult to your traditional testing approach but can be easily done with property-based testing.
Property-based testing allows a range of inputs to be tested on a given aspect of a software property, abstracting away the details.
In the world of Python you can accomplish this with Hypothesis, the Python library used for property-based testing.
Hypothesis helps you design cleaner and clever test suites.
Testing
Liffey Hall 2