News for hackers. Stuff that matters.
Re:Automated Test-Case Reduction by imp0cat on Tuesday July 16, 2024 @03:01PM (#40979267)
Interesting. The techniques are quite similar to what one can do with Hypothesis in Python ( https://hypothesis.readthedocs.io/en/latest/quickstart.html ). Basically, it generates a bunch of test data and then tries to shrink it to the smallest example that fails the test automatically.
Re:Automated Test-Case Reduction by spockz on Tuesday July 16, 2024 @04:37PM (#40980107)
This is more generally called property based testing. My first encounters with it were quickcheck for erlang and Haskell. It has been around for ages.
Re:Automated Test-Case Reduction by DRMacIver on Tuesday July 16, 2024 @05:06PM (#40980337)
This isn't a coincidence. I wrote both.
Re:Automated Test-Case Reduction by imp0cat on Wednesday July 17, 2024 @02:26AM (#40983111)
Thank you! I have no experience with Shrinkray, but Hypothesis is great.