Writing tests for an Android app that logs into Facebook
问题 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