Loading...

Test faster, fix more - Alexander Hultnér

29 views

Loading...

Loading...

Transcript

The interactive transcript could not be loaded.

Loading...

Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Published on Apr 22, 2019

Did you ever miss that corner case bug? Maybe it was a negative integer, strange timezone conversion behaviour, off by one error or something entirely else. These subtle bugs are often hard to catch and are easily missed in test cases. You like me have probably ran into plenty of code utilising only happy path testing, only to later discover subtle bugs which are easily fixed once pointed out.
This is where property based testing comes into the picture. In this talk I will focus on a wonderful Python library called Hypothesis but the concepts apply to other languages as well. Hypethesis is based on the same concept as the famous QuickCheck library for Haskell, which in turn have been ported a large number of languages. Hypothesis uses a wide range of input to find edge cases that you could otherwise easily miss, once it finds these cases it narrows down the input to the minimal breaking example to provide failures which are easier to understand.

---

Alex is technologist by hearth and have been working in the industry for the past 10 years and were contributing to open source prior to that. He’s worked in a wide range of industries including but not limited to Industrial IoT, smart greenhouses, public procurement systems, facility management systems, quality systems, communication systems and more.
He’s on twitter as @ahultner, https://twitter.com/ahultner
Alex can also be reached via his website, https://hultner.se

https://foss-north.se/2019/speakers-a...

Loading...

When autoplay is enabled, a suggested video will automatically play next.

Up next


to add this to Watch Later

Add to

Loading playlists...