Re:TDD Doesn't Force Good Design
by drewcoo on Tuesday September 05, 2023 @05:39AM
(#37389689)
TDD works just fine with property-based tests, with each case representing an equivalence class. I like to randomly select from those classes because that eventually double-checks that I set my boundaries correctly. I often additionally pin the class boundaries in place.
Re:TDD Doesn't Force Good Design
by skybrian on Tuesday September 05, 2023 @11:17AM
(#37392818)
Interesting, could you say more about how you go about this? Iām in the middle of figuring out how I want to do property-based testing for a parser, using fast-check.
https://en.wikipedia.org/wiki/Equivalence_partitioning