-
Hey, thanks you all for this awesome library! Countless are the bugs we eliminate by using One issue we do have is with the indeterministic spirit of How can we cope with it? Is there a way to run all possible end-cases all the time? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
If you want your CI, to be deterministic you must setup fast-check to only use one precise seed by using |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer! Still hope there's a way to run all possible tests, even if they'll take too long. |
Beta Was this translation helpful? Give feedback.
If you want your CI, to be deterministic you must setup fast-check to only use one precise seed by using
fc.configureGlobal({ seed: 48 })
. But I tend to discourage such usage as it would mean not benefit from the strength of property based tests which is to find deeply hidden bugs that might be leveraged by attackers or be the origin of nasty bugs. If you do use such thing in your CI, I'd highly recommend to also have a seed-free version to run on a regular basis.