Loading...

Midwest.io 2014 - Property-Based Testing for Better Code - Jessica Kerr

9,419 views

Loading...

Loading...

Loading...

Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Published on Jul 30, 2014

This talk was given at Midwest.io 2014.

TDD leads to better production code, but it has its limitations. We can only write so many tests, and the more tests we maintain, the more tests we change with new requirements. Can we do better? I say yes. Property-based testing is a technique out of functional programming, one that works in any language. In this talk, I'll use examples in ScalaCheck to demonstrate principles everyone can use: generation of every possible input, calculation of satisfactory output, and automation of hundreds of checks in a single test case. Property-based testing is much harder than the example-based tests we're used to. That's the point: compel us to think harder about the problem, leading to better production code. Come see how property-based testing can press you and your code to higher levels of correctness and simplicity.

About the Speaker

Jessica Kerr is a disloyal Java developer. She fell in love with functional programming for the sanity it can bring to code, in Scala, Clojure, Ruby, F#, and Java. Currently she writes Clojure and JS with Outpace from her home in St. Louis. Each morning she chases two crazy daughters onto the school bus. She roams to Europe and California and in between to share her excitement about functional programming, git, and property-based testing.

Loading...

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

Up next


to add this to Watch Later

Add to

Loading playlists...