Test & Code :  Python Testing for Software Engineering

Test & Code is a weekly podcast hosted by Brian Okken. The show covers a wide array of topics including software engineering, development, testing, Python programming, and many related topics. When we get into the implementation specifics, that's usually Python, such as Python packaging, tox, pytest, and unittest. However, well over half of the topics are language agnostic, such as data science, DevOps, TDD, public speaking, mentoring, feature testing, NoSQL databases, end to end testing, automation, continuous integration, development methods, Selenium, the testing pyramid, and DevOps.

https://testandcode.com

subscribe
share





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


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.

Sponsored By:

  • PyCharm Professional: Try PyCharm Pro for 4 months and learn how PyCharm will save you time. Promo Code: TESTNCODE2020

Support Test & Code : Python Testing for Software Engineers

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


share







 2020-03-27  36m