playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.45k stars 961 forks source link

Automated testing isn't possible with auto sign in as it hangs on the create profile screen #3297

Open oddgames-david opened 4 months ago

oddgames-david commented 4 months ago

We need a way to disable auto login for firebase testlab and other automated testing services.

I have to remove the plugin each time I want to test something, it's super annoying, please fix.

image

oddgames-david commented 1 month ago

Is play services obsolete or something? No movement for a long while.

smile616 commented 1 month ago

@oddgames-david what do you use for the tests? is it UI Automator 2.0 or Robotium?

oddgames-david commented 1 month ago

@oddgames-david what do you use for the tests? is it UI Automator 2.0 or Robotium?

Game loop

smile616 commented 1 month ago

thanks, I'll pass on the feature request.

oddgames-david commented 1 month ago

thanks, I'll pass on the feature request.

yeah this plugin is old anyways. solution is to use version 10 for anybody reading this.

NickAb commented 4 weeks ago

To be clear, v11.x is the current version that uses Play Games Services v2 SDK and we strongly recommend using the latest version. The v10 is an older version that uses Play Games Services v1 SDK.

We don't have a workaround for Game Loop tests on Firebase in v11.x yet.

NickAb commented 4 weeks ago

If you are launching Game Loop tests via command line, try using --no-auto-google-login, see https://cloud.google.com/sdk/gcloud/reference/firebase/test/android/run#--auto-google-login.

If there is no logged in account, there should be no profile creation popup.

oddgames-david commented 4 weeks ago

If you are launching Game Loop tests via command line, try using --no-auto-google-login, see https://cloud.google.com/sdk/gcloud/reference/firebase/test/android/run#--auto-google-login.

If there is no logged in account, there should be no profile creation popup.

thanks, will try this