Skip to content

Test README files should explain cross imports #179429

@justinmc

Description

@justinmc

We should explain how tests should be organized to avoid cross-library imports.

The general principles to explain are given in the design doc (flutter.dev/go/decoupling-framework-tests), summarized here:

  • The Cupertino library/tests should never import Material. It should test its widgets under a full-Cupertino scenario.
  • The Material library should test its widgets in a full-Material scenario.
  • Design languages are responsible for testing their interoperability with Widgets.
  • Tests that cover interoperability between Material and Cupertino should go in Material. See the next section for when and how interoperability should be tested.
  • The Widgets library/tests should never import Cupertino or Material.

Part of #177028

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: proposalA detailed proposal for a change to Flutterf: cupertinoflutter/packages/flutter/cupertino repositoryf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

Type

No type

Projects

Status

No status

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions