Skip to content

[integration_test] mocking - Provide dataHandler/requestData #76852

@subzero911

Description

@subzero911

I could add mock data to my driver test, as described in this article https://medium.com/stuart-engineering/mocking-integration-tests-with-flutter-af3b6ba846c7
But in integration_test I use tester (WidgetTester) instead of driver, which doesn't have dataHandler. So how could I mock the test in this case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: tests"flutter test", flutter_test, or one of our testsc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterf: integration_testThe flutter/packages/integration_test pluginframeworkflutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions