-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
fc.assert pass with path
in the config
#251
Comments
It is unfortunately a known issue, In the documentation: https://github.com/dubzzz/fast-check/blob/master/documentation/Arbitraries.md To be able to shrink those, the path would have to contain lots of additional details :/ |
Here is what happens when you shrink Let's consider the selected commands are If we were using
The path as defined today, cannot give For the moment, I have no nice way to make it work, except relying on |
I should come with some kind of workaround solution in the next minor version of fast-check. I have an idea that should work fine for this purpose. Stay tuned :) |
Replaying previously executed runs is a must have feature for property based testing frameworks. Because of the specificities of commands, commands were not eligible to replay. This commit adds the replay capabilities to commands by specifying an extra parameter when defining them (replayPath). Please note that commands arbitraries should not be shared accross multiple runs. Related to #251
Replaying previously executed runs is a must have feature for property based testing frameworks. Because of the specificities of commands, commands were not eligible to replay. This commit adds the replay capabilities to commands by specifying an extra parameter when defining them (replayPath). Please note that commands arbitraries should not be shared accross multiple runs. Related to #251
Replaying previously executed runs is a must have feature for property based testing frameworks. Because of the specificities of commands, commands were not eligible to replay. This commit adds the replay capabilities to commands by specifying an extra parameter when defining them (replayPath). Please note that commands arbitraries should not be shared accross multiple runs. Related to #251
PR #294 should solve the issue. Feel free to re-open if it does not. (not released yet - I will let you know as soon as it gets released) |
Hey!
My property-based test fails (it takes about 800ms, this is ok ✅)
When I copy
seed
and provide it tofc.assert
, it fails (again, it's ok ✅)When I copy both
seed
andpath
and provide it tofc.assert
, test passes (it takes about 2ms, it's bad 😢 ❌)I looks like this:
The text was updated successfully, but these errors were encountered: