Test & Code

107: Property Based Testing in Python with Hypothesis - Alexander Hultnér


Listen Later

Hypothesis is the Python tool used for property based testing.
 Hypothesis claims to combine "human understanding of your problem domain with machine intelligence to improve the quality of your testing process while spending less time writing tests."

In this episode Alexander Hultnér introduces us to property based testing in Python with Hypothesis.

Some topics covered:

  • What is property based testing
  • Thinking differently for property based testing
  • Using hypothesis / property based testing in conjunction with normal testing
  • Failures saved and re-run
  • What parts of development/testing is best suited for hypothesis / property based testing 
  • Comparing function implementations
  • Testing against REST APIs that use Open API / Swagger with schemathesis 
  • Changing the number of tests in different test environments
  • System, integration, end to end, and unit tests

Special Guest: Alexander Hultnér.


Links:

  • Hypothesis home
  • Hypothesis docs
  • Test Fast, Fix More - Property based testing with Hypothesis by Alexander Hultnér - YouTube
  • Quickcheck, Grandfather of property based testing
  • Beyond Unit Tests, Hillel Wayne, PyCon 2018
  • Better Testing With Less Code, Matt Bachmann, PyCon 2016
  • Choosing properties for property-based testing (F#)
  • schemathesis: Hypothesis + Open API / Swagger for testing web applications



...more
View all episodesView all episodes
Download on the App Store

Test & CodeBy Brian Okken

  • 4.7
  • 4.7
  • 4.7
  • 4.7
  • 4.7

4.7

70 ratings


More shows like Test & Code

View all
Radiolab by WNYC Studios

Radiolab

44,008 Listeners

Software Engineering Daily by Software Engineering Daily

Software Engineering Daily

624 Listeners

Heavy Networking by Packet Pushers

Heavy Networking

328 Listeners

Talk Python To Me by Michael Kennedy

Talk Python To Me

588 Listeners

Python Bytes by Michael Kennedy and Brian Okken

Python Bytes

214 Listeners

Darknet Diaries by Jack Rhysider

Darknet Diaries

8,002 Listeners

The Real Python Podcast by Real Python

The Real Python Podcast

141 Listeners

Unexplainable by Vox

Unexplainable

2,283 Listeners

Network Automation Nerds by Packet Pushers

Network Automation Nerds

3 Listeners