Skip to content

flutter run test/widget_test.dart no longer works #24650

@jamesderlin

Description

@jamesderlin

(I discussed this with @jonahwilliams already, but I'm filing this to make sure we're tracking it.)

flutter run test/widget_test.dart is broken after the recent test_api changes. Attempting it will hit various runtime exceptions such as:

NoSuchMethodError: The method 'test' was called on null.
NoSuchMethodError: The method 'setUp' was called on null.
NoSuchMethodError: The method 'tearDown' was called on null.

We document that people can use flutter run on their widget tests to help debug widget tests, so this should be expected to work.

Metadata

Metadata

Assignees

Labels

a: tests"flutter test", flutter_test, or one of our testsc: regressionIt was better in the past than it is nowcustomer: productd: api docsIssues with https://api.flutter.dev/

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions