-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Closed
Labels
a: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsc: regressionIt was better in the past than it is nowIt was better in the past than it is nowtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
The following commands run all tests and one specific unit test OK. CWD is the root of the flutter repo.
flutter test --debug
flutter test --debug /builds/dev/flutter/packages/unit/test/widget/bottom_sheet_test.dart
Relative pathnames fail. For example:
flutter test --debug packages/unit/test/widget/bottom_sheet_test.dart
00:00 +0 -1: loading packages/unit/test/widget/bottom_sheet_test.dart
Failed to load "packages/unit/test/widget/bottom_sheet_test.dart": Does not exist.
00:00 +0 -1: Some tests failed.
The run_tests
command used to accept paths relative to the unit directory. That doesn't work either:
flutter test --debug test/widget/bottom_sheet_test.dart
00:00 +0 -1: loading packages/unit/test/widget/bottom_sheet_test.dart
Failed to load "packages/unit/test/widget/bottom_sheet_test.dart": Does not exist.
00:00 +0 -1: Some tests failed.
Metadata
Metadata
Assignees
Labels
a: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsc: regressionIt was better in the past than it is nowIt was better in the past than it is nowtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.