Skip to content
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

no stacktrace for timeouts, so re-runs everything #32

Closed
okram999 opened this issue Aug 12, 2016 · 2 comments
Closed

no stacktrace for timeouts, so re-runs everything #32

okram999 opened this issue Aug 12, 2016 · 2 comments

Comments

@okram999
Copy link

okram999 commented Aug 12, 2016

when some test fails due to timeout, there is no stacktrace. Its 'undefined'. And hence it ends up re-running all the test. Is this by design?

[chrome #1-11]
[chrome #1-11]
[chrome #1-11] Failures:
[chrome #1-11]
[chrome #1-11] 1) Open SomeTestName Test should find the Search button Function
[chrome #1-11] Message:
[chrome #1-11] timeout: timed out after 120000 msec waiting for spec to complete
[chrome #1-11] Stacktrace:
[chrome #1-11] undefined
[chrome #1-11]
[chrome #1-11] Finished in 208.122 seconds
[chrome #1-11] 4 tests, 5 assertions, 1 failure
[chrome #1-11]

jasmineNodeOpts: {
    defaultTimeoutInterval: 120000,
    onComplete: null,
    isVerbose: true,
    showColors: true,
   includeStackTrace: true
},
@okram999 okram999 changed the title no stacktrace for timeouts & re-runs everything again no stacktrace for timeouts, so re-runs everything Aug 12, 2016
@NickTomlin
Copy link
Owner

Hi there,

Protractor flake is not very smart and can only selectively re-run tests if it knows which test files failed. I haven't found a great way of fixing this (since protractor requires file paths and not spec names).

If you can think of a way to solve this please feel free to submit a pull request. Thanks!

@NickTomlin
Copy link
Owner

Going to go ahead and close this since it's a known issue that needs a fix. Again, PRs are very much welcome 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants