News for hackers. Stuff that matters.
Re:Show HN: PBT – A property-based testing library for Ruby by ohbarye on Thursday May 23, 2024 @01:51AM (#40450935)
I think there are usually three actions a programmer can take when PBT fails.

- Create a test case that doesn't depend on PBT as you suggest.

- Fix the production code being tested since its failure is an unexpected bug.

- Fix the PBT itself. This means that the programmer has had wrong assumption for the test target.

I think it's difficult for the tool to know which choice is the best on a failure. But if there's any good idea, I'd like to incorporate it. :)

There are no comments on this comment yet.