how to integration test an app with Firebase and Google Sign-in?

15 views
Skip to first unread message

steve christensen

unread,
Oct 18, 2018, 8:13:52 PM10/18/18
to Flutter Dev
I'm creating an app that uses Google Sign-in to authenticate with Firebase. I want to create integration tests for my app using FlutterDriver.... 

Seems like I'll need:
1) create a test Google account I don't mind sharing the credentials for
2) make the flutter driver tests navigate through the google-sign-in screens. 

Am I making this harder on myself than it needs to be? 

It looks like the google_sign_in plugin has a `FakeSignInBackend` that I could enable by overriding the method channel, but that won't give me a valid auth token to login to Firebase and gain access to my Firestore DB.

Anyone done something similar? Or, have hints about how to bypass portions of authentication UI while still getting access to the real Firestore database?

Thanks,
Steve
Reply all
Reply to author
Forward
0 new messages