-
Notifications
You must be signed in to change notification settings - Fork 15
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
Tests are not rerun if failure because of WaitTimeoutException #3
Comments
It should be catching and retrying those tests. Which version of Spock are you running? The 0.1 release should work with Spock 1.0, but if you're using 0.7, you'd have to use the code in the initial commit. |
Using spock 1.0.
|
Just realized the timeout happens in an "at" section called from a base
|
Ah, yeah, looks like it doesn't re-run Shouldn't be that hard to implement, but I probably will not get to it until this weekend. |
I think the retry code even doesn't catch errors in
|
I tried to fix this but no success. There are interceptors in SpecInfo, e.g. iterationInterceptor, but failures from tests does not propagate to them. There is however setupInterceptors which might work, but then one has to retry each setup method on its own, which wouldn't work. |
Can you give this a shot and see if it handles the issues you're seeing? |
It does catch the error and retries, but doesn't cleanup and setup everything from start, i.e. no navigation happens while retrying. I guess the problem is to know which cleanup and setup-methods have been run before the failure and what should be done before rerunning. I've solved the shakyness that caused the failure in the setup for now, so this can wait for a better solution from spock framework. |
Is it correct that timeout failures aren't caught by this extension and retried? I get a test that fails with
geb.waiting.WaitTimeoutException: condition did not pass in 20.0 seconds (failed with exception)
which does not cause reruns.
The text was updated successfully, but these errors were encountered: