-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Prevent Monkey #2054
Comments
The thing is, others have used a monkey to find bugs in the activity that displays leaks, so I'd rather not do that :) . However, when running the monkey, you could:
|
Ok but at least protect the delete/DeleteAll button maybe? |
That would defeat the point. That being said, I'm curious: if we implement the solution you proposed to finish the activity immediately when the user is a monkey, how do you intend to use the monkey to report / detect leaks? Did you intend to manually go into the activity after running the monkey? |
Problem description
I use monkey tests to find leaks but the monkey is deleting the leaks :/
Potential solutions
From https://stackoverflow.com/questions/10285067/how-to-filter-specific-activities-to-be-tested-by-monkey-using-android-intent-ca
Add a test : if (ActivityManager.isUserAMonkey()) {finish();}
Additional information
The text was updated successfully, but these errors were encountered: