-
Notifications
You must be signed in to change notification settings - Fork 23
Does not retry when expect()
fails
#48
Comments
Looks like retry only works if there is an exception (https://github.com/webdriverio/wdio-sync/blob/32bf88aa30373e50529a2b9cae58573c0a5e6a07/index.js#L472) so presumably Looking at how Jasmine works, it looks like Can we update this adapter so it retries if |
If this solves the issue above..sure! |
I'm not quite sure how to do that, though. 😒 If I understand correctly, this adapter invokes |
it is in the |
Is this the place to check? https://github.com/webdriverio/wdio-sync/blob/32bf88aa30373e50529a2b9cae58573c0a5e6a07/index.js#L592 Look at the object returned from |
yes |
this seems to be more tricky than expected. The expect indeed doesn't throw an error. There is no way to detect if the spec fails or not. I actually don't really know how to work around that. |
Hi there,
I am building a test suite using this adapter, and can't get my jasmine tests to retry when expectations fail. Throwing an error explicitly works though (as explained in #16 by @christian-bromann ):
package.json
wdio.config.js
tests.js
console output
I tried throwing errors in the
expectationResultHandler
instead, but that doesn't help either. Any help would be greatly appreciated! 🙂The text was updated successfully, but these errors were encountered: