Code for Thought

[EN] ByteSized RSE: Property Based Testing - Duncan McGregor and Nicholas del Grosso


Listen Later

Property based testing can help you make your tests more effective and your code more robust. Together with my guests Duncan McGregor and Nicholas del Grosso we talk about what property based testing is and in particular go into one widely used implementation for Python - the Hypothesis library. 

Here are a few links:

  • https://increment.com/testing/in-praise-of-property-based-testing/ from David MacIver (creator of hypothesis) about the benefits of property based testing
  • https://hypothesis.works/articles/what-is-property-based-testing/ explaining what property based testing is
  • https://www.inspiredpython.com/course/testing-with-hypothesis/testing-your-python-code-with-hypothesis Testing your code with Hypothesis
  • https://reiddraper.com/writing-simple-check/ Reid Draper (QuickCheck) on shrinking
  • https://hackage.haskell.org/package/QuickCheck-1.0 the QuickCheck tool
  • https://hypothesis.works/articles/how-many-tests/ How many tests is hypothesis running?
  • https://hypothesis.works/articles/quickcheck-in-every-language/ property based testing in other languages (a bit outdated - it's from 2016)
  • https://hypothesis.works/articles/integrated-shrinking/ David MacIver on how he implemented shrinking in Hypothesis
    • https://hypothesis.works/articles/compositional-shrinking/ and more on shrinking
  • https://jqwik.net the property based testing library for Java/Kotlin
  • https://en.wikipedia.org/wiki/Functional_programming What is functional programming
  • https://www.youtube.com/watch?v=xgDPvlgUSLE Duncan's YouTube episode on property based testing with jqwik (from his channel 'Refactoring to Kotlin')

Get in touch

Thank you for listening! Merci de votre écoute! Vielen Dank für´s Zuhören!

If you're like to support this show, you can leave a little tip at

https://en.tipeee.com/code-for-thought-podcast/

Contact Details/ Coordonnées / Kontakt:

  • Email mailto:[email protected]
  • UK RSE Slack (ukrse.slack.com): @code4thought or @piddie
  • US RSE Slack (usrse.slack.com): @Peter Schmidt
  • Mastodon: https://fosstodon.org/@code4thought or @[email protected]
  • Bluesky: https://bsky.app/profile/code4thought.bsky.social
  • LinkedIn: https://www.linkedin.com/in/pweschmidt/ (personal Profile)
    • LinkedIn: https://www.linkedin.com/company/codeforthought/ (Code for Thought Profile)

This podcast is licensed under the Creative Commons Licence: https://creativecommons.org/licenses/by-sa/4.0/

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

Code for ThoughtBy Peter Schmidt

  • 4.5
  • 4.5
  • 4.5
  • 4.5
  • 4.5

4.5

2 ratings


More shows like Code for Thought

View all
Talk Python To Me by Michael Kennedy

Talk Python To Me

590 Listeners

The Quanta Podcast by Quanta Magazine

The Quanta Podcast

499 Listeners

The Daily by The New York Times

The Daily

111,827 Listeners

Waveform: The MKBHD Podcast by Vox Media Podcast Network

Waveform: The MKBHD Podcast

5,926 Listeners

No Stupid Questions by Freakonomics Radio + Stitcher

No Stupid Questions

3,678 Listeners

Hard Fork by The New York Times

Hard Fork

5,443 Listeners

The Ezra Klein Show by New York Times Opinion

The Ezra Klein Show

15,237 Listeners

The Economics of Everyday Things by Freakonomics Network & Zachary Crockett

The Economics of Everyday Things

1,610 Listeners