flutter-intellij
flutter-intellij copied to clipboard
Gutter icons for running tests should not appear in Dart projects
Is there a reason why Flutter plugin took over running Dart main
and tests instead of the the Dart plugin?
There are some issues with running dart tests, e.g. 1 and 2, and I was going to request support for test_reflective_loader test package from the Dart plugin, only to discover that Flutter plugin is actually doing this.
As a user of Flutter, it may not differ much, but since those features are Dart-specific, I find it strange that it isn't implemented in the Dart plugin.
Another point for sure, running some Flutter-specific tests should be handled by the Flutter plugin, with coordination with the Dart plugin in this case.
I guess deciding this point should be made, before trying to fix the issues or proposing new features.
I guess there is a missing reply.
Hah, you're right; I forgot to send it. Here it is:
I'm not sure what the issue is, but here's a screen shot showing both Dart and Flutter run configs. Choosing a Dart run config will cause it to be run by the Dart plugin. Choosing Flutter will run Flutter.

If you create a Dart project, even with the Flutter plugin installed, Dart runs the tests, when the "Run" icon is clicked in the gutter of the editor. Flutter project tests are run by Flutter. I'm not sure how this could be done differently. Can you elaborate?
Thanks, I didn't notice the Dart Test
runs by Dart plugin.
My question is: with only Dart plugin, without Flutter plugin, there is no gutter green icons to run the tests:
The green icons are visible and actionable only when Flutter plugin is also enabled:
If there are issues with those gutters (like the ones mentioned earlier), one would expect them to be fixed in Dart plugin, not Flutter plugin. As commented here:
Gutter icons for pure Dart tests should be maintained by the Dart plugin (but not yet, tracked as WEB-47203). Flutter-specific stuff should be handled by the Flutter plugin.
This would be the first point to tackle, before moving forward to fix gutter issues, or requesting to support new test frameworks like test_reflective_loader
To be clear, you are working in a Dart project, right? So the issue is that Flutter is adding run icons inappropriately. They should not even be visible, since the Dart plugin does not provide them.
Requests for new Dart test frameworks should be made to the Dart plugin, in YouTrack. (Link in your previous comment.)