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

21 wrz 2021 | Podcast | programowanie | testing | IT

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

POSTY TEGO AUTORA

OpenTelemetry glossary: 30 terms you should know15 kwi 2026

Blog | programowanie | java | monitoring | IT

Podcast everything: how to turn any content into podcast feed30 sty 2026

Blog | programowanie | podcast | IT

Is ‘return await’ redundant or necessary in JavaScript?5 sie 2024

Blog | programowanie | javascript | IT

#97: Ruby: help every programmer to be productive and to be happy13 lut 2023

Podcast | programowanie | ruby | ruby on rails | IT

Around IT In 256 Seconds

Tomasz Nurkiewicz