News for hackers. Stuff that matters.
Re:AI;DR (AI; Didn't Read) by eru on Tuesday August 18, 2026 @12:14AM (#49341169)
Try property based testing perhaps.
Re:AI;DR (AI; Didn't Read) by LPisGood on Tuesday August 18, 2026 @01:00AM (#49341468)
I’ve heard of this, but I’m not really sure at all how to even get started. Are there any good guides out there?
Re:AI;DR (AI; Didn't Read) by eru on Tuesday August 18, 2026 @03:25AM (#49342499)
Re:AI;DR (AI; Didn't Read) by kristjansson on Tuesday August 18, 2026 @01:08AM (#49341510)
I'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?
Re:AI;DR (AI; Didn't Read) by kqr on Tuesday August 18, 2026 @01:55AM (#49341804)
Code-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.