Skip to content

Feature request - Coverage for Integration test on Package #93619

@hrishikesh-kadam

Description

@hrishikesh-kadam

Use case

Consider I am writing a Package and I wish to write integration tests for it.
To write integration tests on a Package, one of the ways is to write the test in the example/integration_test folder.
My goal is to get coverage (lcov.info) for the integration tests.
Currently, there are no options in the flutter test command for this scenario.

Please consider flutter_package_integration_testing_coverage repo for the use case.
I wish to generate contents of integration_test_lcov.info at flutter_package_integration_testing_coverage/coverage/lcov.info.

Proposal

Is there any way to collect coverage for the parent Package?
I tried this doing by using integration_test_android.sh script but it currently depends on the sleep command.
How can I improve the integration_test_android.sh script or is there any correct way to do this?

I have also made an attempt in #93620.
My proposal would be the Flutter Authors take this PR forward to achieve the above feature request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: 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.r: fixedIssue is closed as already fixed in a newer versionteam-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework teamwaiting for PR to land (fixed)A fix is in flight

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions