-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Print seed to reproduce failure (as FsCheck allows) #179
Comments
This isn't supported yet. If we should add support for this, it should be done through the notion of a runner config, as in the Haskell version (QC and FsCheck are doing similar, IIRC). (FTR, in the Haskell version specifically, there's a similar discussion about being able to supply a fixed seed.) Here in the .NET/F# version, without the notion of a runner config, one way of doing what you describe is to modify |
The referenced Haskell discussion about seed fixing is motivated by wanting to make CI test runs deterministic. I have also been bitten by that behavior and would also appreciate that feature (which, as also pointed in that discussion, would be complemented by nightly builds that don't fix the seed). My stronger motivation however is for rerunning a failed test and having it fail again (for the same reason). My understanding is that Haskell's Hedgehog achieves that behavior with a feature called recheck. Does (the F# version of) Hedgehog have the same |
There's no
|
In FsChesk, when a test fails, the seed from the random number is printed. The seed can then be feed into the test to reproduce the same failure.
Can this be done in hedgehog? I could not see examples or any seed output.
The text was updated successfully, but these errors were encountered: