Skip to content

Flutter integration test that migrate from flutter_driver. How to attach existing app. #91740

@tupobi

Description

@tupobi

I have a big problem that makes me headache:
I am using the integration_test which migrate from flutter_driver, cause flutter_driver has been deprecated.
But the flutter is a module contained by native app, and i want to execute flutter ui test.
How can i uese --use-existing-app, it appears:

Integration tests and unit tests cannot be run in a single invocation. Use separate invocations of flutter test to run integration tests and unit tests.

As a module, how to execute cmd:

flutter test integration_test

or

flutter test integration_test --use-existing-app

it appears:

Integration tests and unit tests cannot be run in a single invocation. Use separate invocations of flutter test to run integration tests and unit tests.

I want to attach the existing-app to make integration test.

The official doc doesn't help: https://flutter.dev/docs/testing/integration-tests

Please help me.
Thanks very very much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions