Skip to content

[flutter_plugins_tool] Ensure coverage-check includes all test/ sub-directories of opted-in packages #188880

Description

@camsim99

In the original implementation of the coverage-check command, PackageLoopingType.includeAllSubpackages is used to discover all sub-packages recursively. However, because the tool relies on a strict opt-in list in custom_coverage_minimums.yaml, any discovered sub-package is skipped unless it is explicitly listed in the configuration file, script/configs/custom_coverage_minimums.yaml. See related discussion.

To ensure that all test/ directories associated with an opted-in package are properly covered, we should re-define how the coverage check should handle these sub-packages. We need to decide whether sub-packages of an opted-in package should automatically inherit the parent package's coverage minimum and be checked, or if they must continue to be listed individually in the configuration file. This issue tracks the design and implementation of coverage enforcement for nested sub-packages of opted-in packages to ensure no test/ directories are left uncovered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listpackageflutter/packages repository. See also p: labels.team-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions