Closed AIRTEspresso closed 2 years ago
Thank you for your interest in perses and the feedback on the code change.
The common practice is to use the command timeout
inside the shell script. One example is here.
You can change your command into this form: timeout -s 9 60 <your command and arguments here>
I think inside Perses, if a property test runs too long, e.g., 10 minutes or 5 minutes, there will be a warning message emitted from Perses. But I forgot the exact threshold.
Oh, that's right! Thanks for your answering!
Glad to help.
This is addressed internally, and will be released in the next version.
Hi! I am now using Perses on my buggy test scripts and I really appreciate your effort because Perses did help me cut down my test scripts and eventually find the bug. However, for several complex scripts I fond Perses may hang, here is an example:
Perses may hang with this piece of code, maybe Perses may try to reduce some tokens which make the loop here endless when executing the test script, I guess. I also find it is useful to set a timeout limit in org.perses.reduction.FutureExecutionResultInfo, like this:
At least with this modification on my local code, Perses no longer hangs. I hope my advice can be helpful.