Skip to content

Limiting execution time with fast-check 3.6 #3605

Answered by dubzzz
elefevre asked this question in Q&A
Discussion options

You must be logged in to vote

I just read back the whole thread and here is what I'd suggest if I get well the issue.

For this, we have a separate setting for each of our ~2000 individual tests, the testTimeout that you refer to for Jest, set to 100000 ms

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 than 100000 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…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dubzzz
Comment options

Comment options

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

@elefevre
Comment options

@dubzzz
Comment options

Answer selected by elefevre
@elefevre
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