shrink package:registry-hedgehog
Apply a shrinking function to a generator.
This will give the generator additional shrinking options, while
keeping the existing shrinks intact.
The number of shrinks to try before giving up on shrinking.
Can be constructed using numeric literals:
1000 :: ShrinkLimit
The number of times to re-run a test during shrinking. This is useful
if you are testing something which fails non-deterministically and you
want to increase the change of getting a good shrink.
If you are doing parallel state machine testing, you should probably
set shrink retries to something like
10. This will mean that
during shrinking, a parallel test case requires 10 successful runs
before it is passes and we try a different shrink.
Can be constructed using numeric literals:
0 :: ShrinkRetries
The number of shrinks allowed before Hedgehog will fail a test
The number of times to re-run a test during shrinking
Set the number of times a property is allowed to shrink before the
test runner gives up and prints the counterexample.