-
With fast-check 2.x, we were using I am currently trying to upgrade to 3. The new behavior of I've tried playing with
...followed by the 10001 input cases that could have been run, but were not. Anyway, I am still trying to figure out a way to express the following:
Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Hey, The new behaviour of At the moment, the idea has been to consider that passing I'm trying to think about it? 🤔 |
Beta Was this translation helpful? Give feedback.
-
Thanks for your response! |
Beta Was this translation helpful? Give feedback.
-
I see your point, but there is an issue of scope for the timeout. For this, we have a separate setting for each of our ~2000 individual tests, the I had addressed this in fast-check v2 with these two flags:
As I understood it, this is what I was aiming for when I said this:
However, I have just revisited these flags, and it turns out that removing So, in the end, although I do believe there is merit in what I originally described, the issue has gone away for us, and we now have no problem upgrading to v3.6. 👍 |
Beta Was this translation helpful? Give feedback.
I just read back the whole thread and here is what I'd suggest if I get well the issue.
In order to avoid fast-check
fc.assert
run to go above the timeout on Jest side for a single test I'd recommend to use:interruptAfterTimeLimit: 100000
. Actually I'd use something a bit smaller than100000
to make sure fast-check will interrupt the run before Jest interrupts fast-check itself.With that option toggled the
fc.assert
will take at most 100000ms (as your other tests from my understanding).But if I get well, it's not fully answering to your needs as it…