-
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
How to rerun parent spec when helper spec fails #19
Comments
Can you give me a sample of what I'm thinking about including a method to customize how exceptions are handled, so perhaps that might be a good fit for this (you would essentially |
Here is the permissions.shared.js (sample structure)
The expect inside permissions.shared.js when failes causes this file to be re-run. Output:
One idea I had was to re-run file with extension .spec.js. |
This is also happening to me on Protractor 4.0.11. |
Hmm, unfortunately given the way that stacktraces work there's no easy solve for this. The exception will be thrown in the spec that it was defined and that's what protractor flake will pick up on. Can you share the output of running the test without protractor flake? |
I think an easier solution, would be to allow a "spec blacklist" file that one can pass as a parameter to protractor-flake. Protractor-flake would then parse each entry, create a pattern and if the pattern is matched, do not add the spec to the object for rerun. blacklist.json
Command Param:
|
Here is my small spec file that calls a helper file which contains all the it and describe block.
When externalAccountDirector.spec.js fails, flake will try to rerun permissions.shared.js file instead. I would like to rerun externalAccountDirector.spec.js
Thank you.
The text was updated successfully, but these errors were encountered: