-
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
protractor-flake doesn't run the remaining tests after retrying the failed test #106
Comments
What my expectation would be is:
But it sounds like something else is happening. Can you provide some sanitized output, or an example repository? Also as a side note, is there a reason why you are using JS to run flake? I think you could get the equivalent by adding |
@NickTomlin in my case it's not running all the targeted tests. It retries the failed spec file right away after it's failed. And then after doing retries it exits. These are the logs I am getting in terminal;
There is no particular reason for using JS to run flake. The command you shared also giving the same output as above. |
I think the issue here is actually jasmine fail fast. Protractor flake assumes that your test run is going to run all tests and only pass it the failures. If fail-fast is failing on the first spec, flake is only going to re-run that failed test. I'd typically solve this by only running fail fast locally, and then run all tests in CI. Does that make sense? If not, we can talk about how to productize this into a feature, or if there's a way we can work around it for your use case. |
@NickTomlin I want to retry the failed tests right away and don't want to run all the failed tests at the end, because in some cases my tests have dependency on each other so running them at the end won't do any good. Currently it's retrying the failed test right away, which is good for me, but it doesn't continue to run the remaining tests. Is this possible to achieve? |
I ran into the very same issue .Today to put in simple terms we have a login spec and a logout spec .If the login fails the retry happens only for the login spec and the logout spec isn't run .So i would suggest you add this as an important feature at the earliest since every app out their will definitely have dependencies .Willing to discuss with you regarding this ASAP.@fubha Burney have you overcome this |
Flake file:
Config file:
Command:
node config/run-protractor.js
Suppose I've started running all the tests
spec1.js
passed andspec2.js
fails randomlyspec2.js
and it's passed as a result of retry but then it exitsspec3.js
andspec4.js
Is this the correct behavior or am I missing something here? I want to continue running the remaining tests.
The text was updated successfully, but these errors were encountered: