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
RESET_BETWEEN_SCENARIOS flag does not work #376
Comments
You mention Resetting between scenarios is only available on the simulator. |
@jmoody Yes, I mentioned the simulator. For now I have actually written a shell script that deletes the |
Can anyone suggest a version of Calabash where resetting works or can provide a real workaround? Unfortunately there's little point for me using this framework if I can't reset the application state between tests. |
I still have not been able to reproduce this locally. I am on vacation until June 27th. I've marked this a bug that needs attention. Maybe someone can reproduce and submit a fix before then? |
Sorry for the delay. I have been on vacation. I have verified that the application content and settings are deleted when I think the problem is one of semantics and expectations. I think what you really want is the for the iOS Simulator Content and Settings to be reset. Is this the case? You want the simulator to be reset? If so, then call: I can see how this is confusing - the variable name matches a Menu Item in the iOS Simulator. See this SO post for an example of how to reset either the application or the simulator. http://stackoverflow.com/questions/24493634/reset-ios-app-in-calabash-ios/ In the course of investigating, I noticed some obvious bugs in the I will be submitting a pull request to address these. |
UPDATE: I found a significant bug in reset_app_jail (now reset_app_sandbox): only apps with the latest SDK are reset. Working on a fix. |
Fixed in 0.10.0. |
Hello everyone, and first of all thank you for all the work you've put into this project.
I've tried launching cucumber with the
RESET_BETWEEN_SCENARIOS=1
environment variable, but it clearly does not reset the device between scenarios.I would like to know if there is anything I can do about it.
Also, as a workaround - is there a possibility to call
set_user_pref
within a scenario hook? I've tried including theCalabash::Cucumber::Operations
module but the method names seem to be clashing with other ones, thus, stopping the execution. (tap
is an example)Thanks
Costea
The text was updated successfully, but these errors were encountered: