✓ Workshop Day for free ✓ Raspberry Pi or C64 Mini for free ✓ Save up to €584 Register now
More talks in the program:
16:45 - 17:45
Saal Maritim B
Most approaches to testing test individual examples. This is often not enough to tease out rare but realistic edge cases. As a result, it takes a large number of individual tests to really be confident that our API is ready for deployment: This is a lot of work. What if we could generate test cases automatically? Doing so leads to thinking about tests not in terms of individual examples, but general properties, and from there to an approach called property-based testing or QuickCheck. QuickCheck generates tests from properties. It has its origins in functional programming, and has been a crucial tool in eliminating bugs from many complex software projects. But QuickCheck does more than help find bugs: It encourages thinking about our API in terms of properties, and this style of thinking often leads to interesting domain insights and architectural improvements. The talk gives an introduction to QuickCheck and shows how to apply it in realistic projects.