pyqcy icon indicating copy to clipboard operation
pyqcy copied to clipboard

Implement shrink

Open nidico opened this issue 12 years ago • 1 comments

It'd be very useful if pyqcy implemented shrink functionality similarly to what is implemented in Haskells QuickCheck.

Soenkehahn summarizes:

In case of a failing testcase, QuickCheck's shrink function is used to search for smaller test-data that will still make the testcase fail. It tries to boil the test-data down to the relevant bits that cause the failure. This is immensely useful, since it allows QuickCheck to generate very concise and readable counter-examples to a tested property.

As far as I can see, none of the Python QuickCheck implementations does that.

nidico avatar Jul 14 '12 15:07 nidico

https://pypi.python.org/pypi/pyquchk seems do it, not sure if helps

pedroteixeira avatar Dec 13 '14 19:12 pedroteixeira