-
Notifications
You must be signed in to change notification settings - Fork 330
Description
Steps to reproduce
Use the Dart workspace feature (https://dart.dev/tools/pub/workspaces)
Try to run the tests from a "_test.dart" file in the IDE (right click the file, Run)
Expected result (correct result):
The IDE detects that this is a test file and launches the "Test Results" window and list the results
Actual result (faulty result):
It runs the file as a normal dart script and just display the raw output in the console
Additional info
I noticed it only happens when you open a single module of the workspace. If you open the project from the root (where the pubspec.yaml with the workspace is located) everything works just fine.
I also noticed that in the situations where it is not working, the test file icon does not show the usual red and green triangles that inform you that it is a test file.
Versions info
IntelliJ IDEA 2025.2.1 • Flutter plugin io.flutter 87.1 • Dart plugin 251.27623.5
Flutter 3.35.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 05db968908 (4 weeks ago) • 2025-08-25 10:21:35 -0700
Engine • hash abb725c9a5211af2a862b83f74b7eaf2652db083 (revision a8bfdfc394) (28 days ago) • 2025-08-22 23:51:12.000Z
Tools • Dart 3.9.0 • DevTools 2.48.0