You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Running an individual unit test with flutter test needs an absolute path #278
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.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
Hixie commentedon Nov 10, 2015
As a temporary workaround, does "widget/bottom_sheet_test.dart" work?
HansMuller commentedon Nov 11, 2015
That doesn't work but an absolute pathname does. This isn't blocking me.
github-actions commentedon Sep 7, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.