Skip to content

google_sign_in tests should use a mock implementation of the interface #77627

@cyanglaz

Description

@cyanglaz

tests in google_sign_in uses the real method channel, which could cause failure after publishing changes in google_sign_in_platform_interface. These failures are not easy to catch as they don't fail when landing the change, but they fail until the change is published to pub.

See https://github.com/flutter/plugins/blob/master/packages/url_launcher/url_launcher/test/mock_url_launcher_platform.dart for an example of mock platform interface

We had a temp fix in flutter/plugins#3690 for one of such failures.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectp: google_sign_inThe Google Sign-In pluginpackageflutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions