You are correct Google don’t offer a test user API in the same way that Facebook do. I think you have two options:
-
Use “real” Google users as you stated. This can cause issues if Google blocks these accounts or adds extra checks to test if they are real users to not (Phone verification). They also do some A-B testing which can break your test scripts.
-
Use a mock third party instead of the Google service. This will test your generic oauth integration code but obviously isn’t as robust as testing against the real Google service. This method can be more stable as you control the mock service.