-
Notifications
You must be signed in to change notification settings - Fork 51
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
Fail to catch spec which fails by jasmine default timeout #83
Comments
Unfortunately this is not possible without using a custom reporter; the stacktraces for timeouts don't include the path to the source spec in them if I remember correctly. You could write your own reporter that prints the spec files out and then checks for failures and then write a custom protractor flake parser. There's a feature request here #72 that goes over things. I'd love to see this implemented and then pull requested if you have time! |
@vdimikj: If you set If you must execute sequentially, you can try implementing the following: In your protractor config, get Protractor's logger & CLI args:
Add the
|
Hi there!
When test fail due to
Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
Protractor-flake fails to parse the failing test and the spec is not rerun thus failing to "rerun potentially flakey protractor tests before failing."
For better recreation I have setup an example found on git-url .
P0 - Edit Spec1 ✓ should test1 changes (54 secs) . ✓ should test2 it (59 secs) FA Jasmine spec timed out. Resetting the WebDriver Control Flow. A Jasmine spec timed out. Resetting the WebDriver Control Flow. A Jasmine spec timed out. Resetting the WebDriver Control Flow. ✗ should test3 it (6 mins 57 secs) - Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL. at tryOnTimeout (timers.js:232:11) - Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL. at tryOnTimeout (timers.js:232:11) - Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL. at tryOnTimeout (timers.js:232:11)
The text was updated successfully, but these errors were encountered: