Hacker News new | past | comments | ask | show | jobs | submit login

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.

https://en.wikipedia.org/wiki/Equivalence_partitioning




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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: