The Tests That Write Themselves (Almost)
Talk in english
Imagine a world where writing tests doesn’t demand years of experience, where considering every edge case is not a requirement, and where expressing your expectations is enough to validate your code. Let’s add a glimpse of magic in our tests, let’s discover the world of property-based testing!
Inherited from the functional world, this technique offers a unique approach to validate your code. When applied in conjunction with traditional testing techniques, it becomes a powerful ally in detecting hidden bugs before your users even notice them. Unlike conventional tests, the key isn’t to hardcode inputs but to let the framework build them and think about the edge cases for you.
Let’s discover this unique technique together!