samedi 28 octobre 2017

Use a different `google-services.json` when testing in Android

I am working on an Android application that uses Firebase for data storage. I'd like to run JVM unit and instrumentation tests that will be in the app/src/tests and app/src/androidTest directories, but I don't want to use the production database google-services.json that is currently in the root /app folder. I have created a testing database in Firebase console with its own google-services.json file. How do I tell Android to use that google-services.json when running unit or instrumentation tests?

Aucun commentaire:

Enregistrer un commentaire