Live Life on the Edge: A Layered Strategy for Testing Data Models
chiply.devThanks for writing this, its sad that not a lot of people talk about Property-Based testing, it's one of these great ideas from the late 90's that never seem to hit the mainstream despite how awesome it looks.
Thanks for reading!
I totally agree. For me, the biggest take away from researching and writing this post is this: "the state space of a model – not just its happy path of a golden test instance – is the right unit to reason about when you write tests". If I were to try and get buy-in from an enterprise on doing a layered testing strategy, I'd probably lead with this idea as it is the most resonant. I've struggled to get folks on board to strategies like this in the past, and it's likely because I've led with the complex layering approach rather than simply calling out the fact that we aren't reasoning about the right 'unit' when we're testing our models or procs that use those models.