Skip to content

[packages] Test infra: sub-packages are not supported in test exclusion config files #191447

Open

Description

@elliette

flutter/packages CI test infra uses "test exclusion" files that can be used to exclude tests for a certain package.

See for example exlude_native_unit_android.yaml which excludes package:espresso from Android unit testing.

However, the exclusion logic only works for top-level packages. Any sub-package (e.g. material_ui/tool/gen_defaults) will inherit its parent exclusion status here.

I believe sub-packages can still be excluded via a dart_test.yaml file in their sub-directory, so fixing this isn't too high of a priority. However, it would be good to document this at least in the exclude files since I spent quite a bit of time trying to figure out why it wasn't working.

Activity

  1. added
    P2Important issues not at the top of the work list
    on Aug 25, 2026
  2. self-assigned this
    on Aug 25, 2026
  3. elliette commented on Aug 25, 2026

    @elliette
    MemberAuthor

    I'll take this one 😄 I had it mostly working locally when I was investigating this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listteam-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