Skip to content

Determinstic tests #3219

Answered by dubzzz
SRachamim asked this question in Q&A
Sep 21, 2022 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

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.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@dubzzz
Comment options

@dubzzz
Comment options

Answer selected by dubzzz
Comment options

You must be logged in to vote
3 replies
@dubzzz
Comment options

@dubzzz
Comment options

@SRachamim
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants