Skip to content

test coverage broken with pub workspaces on Flutter 3.41 and Dart 3.11 #182314

Description

@felangel

Flutter 3.41 requires test 1.28 due to the pinned test_api version in flutter_test.

This means that any projects that contain a mix of pure Dart packages and Flutter packages, are using pub workspaces, and collect test coverage cannot upgrade to Flutter 3.41 and Dart 3.11.

Seems like the bug was fixed in test: 1.29.0 but it's not possible to use with the latest stable version of Flutter due to the explicit pinning of test_api in flutter_test.

package:test issue: dart-lang/test#2570

In my opinion, this should be hot fixed ASAP. cc @Piinks, @kevmoo @mit-mit (not sure who else to tag).

Metadata

Metadata

Assignees

Labels

P0Critical issues such as a build break or regressionteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions