Skip to content
#50: Property-based testing: find bugs automatically by generating thousands of test cases episode artwork

Sep 21, 2021 4 min

#50: Property-based testing: find bugs automatically by generating thousands of test cases

from Around IT in 256 seconds Hosted by Tomasz Nurkiewicz

Property-based testing is an approach to automatically test software against well-defined rules. We don’t specify desired output for a few inputs. Instead, we barely define properties that should always hold. It’s best explained with an example. How do you make sure that your compression algorithm works? Ordinary unit tests verify a handful of inputs that you came up with. If you are experienced developer, you will include edge cases. I mean, the weirdest inputs, like an empty string or a long sequence of the same character. And what are the properties of a good compression algorithm? Its output should takes less space, obviously. But even more importantly, lossless algorithm should be capable of decompression. What if I told you, there is software that can check these properties automatically? With thousands of randomized tests? Read more: https://nurkiewicz.com/50 Get the new episode straight to your mailbox: https://nurkiewicz.com/newsletter

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

#50: Property-based testing: find bugs automatically by generating thousands of test cases

0:00 4:15

No transcript yet.

Requests help us decide what to transcribe next.

Frequently asked questions

How long is this episode of Around IT in 256 seconds?

This episode is 4 minutes long.

When was this Around IT in 256 seconds episode published?

This episode was published on September 21, 2021.

Can I download this Around IT in 256 seconds episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.