My Android app uses FacebookSDK for login. It's the first screen, and you can't do anything unless you login.
I want to write some Espresso tests to be ran on Greenhouse Continuous integration server.
I searched and I found FBSDKTestUsersManager on iOS, but nothing similar on Android.
What I plan to do is create a flavor of test and when that flavor is selected instead of a normal Facebook login button, I'd display a button that gets a test access token for the user, then brings them to the homepage of the app. However, I can't do that cause FBSDKTestUsersManager doesn't exist on Android.
Any suggestions?
来源:https://stackoverflow.com/questions/34805176/writing-tests-for-an-android-app-that-logs-into-facebook