4 ms·
Try property based testing perhaps.
by eru 2mo ago
Try property based testing perhaps.
- LPisGood 2mo agoI’ve heard of this, but I’m not really sure at all how to even get started. Are there any good guides out there?
- eru 2mo agoMany people like https://fsharpforfunandprofit.com/series/property-based-testing/ https://fsharpforfunandprofit.com/series/property-based-test... In this day and age, https://hypothesis.works/articles/claude-code-plugin/ https://hypothesis.works/articles/claude-code-plugin/ might be useful.
- kristjansson 2mo agoI'm generally happy with the tests I ask it for, some of which are PBT. It's just the insistence upon memorializing every single change with a test. Maybe encouraging / forcing PBT will dissuade it?
- kqr 2mo agoCode-generating robots are pretty bad at property-based testing, in my experience. They can do it but they still need a lot of hand-holding. They often regress to writing a mirror implementation as the oracle and trying to enumerate a fixed set of examples they find meaningful.