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
Screenshot 2 (vscode) also shows a minor bug where the dart analyser has incorrectly flagged 'dependencies' in pubspec.yaml
Tool Versions (info also shown in screenshots)
Android Studio Iguana | 2023.2.1
Build #AI-232.10227.8.2321.11479570, built on February 21, 2024
IntelliJ IDEA 2024.1 (Community Edition)
Build #IC-241.14494.240, built on March 28, 2024
Screenshots
The text was updated successfully, but these errors were encountered:
There is an implicit unnamed test group at the outer layer of every test suite - which seems to be getting visualized here.
My assumption would be that VsCode just knows about that, and is replacing it with the name of the test, cc @DanTup for confirmation.
We wouldn't want to give that a real name (such as the test path), because it would mess up the command line reporting when you run dart test (this already visualizes the test path separately from the name of the test).
My assumption would be that VsCode just knows about that, and is replacing it with the name of the test, cc @DanTup for confirmation.
Not quite - the root node for the suite exists before we get any results, but we have code that squashes out unnamed groups at any level (we add them to a mapping with their parent - null for top level - and then whenever we look up a parent, we check that map first).
It would be nice if we could handle this better pkg:test because editors are less likely to have different behaviour then, but since changes to something like this could affect existing integrations, probably the time to do something like that would be bundled together with other breaking changes to the "API" the editors use. (I don't have any in mind, although I have long dreamed of the pkg:test API being more of a long-running service I can ask for lists of tests, or to run them... maybe DTD will make that kind of thing easier to avoid IDEs having yet more background processes to spawn).
When running dart tests in IntelliJ and Android studio the 'test suite' is shown as '<no name>' in the Test Runner results panel (see screenshot 1)
Steps to reproduce
Notes
Tool Versions (info also shown in screenshots)
Screenshots
The text was updated successfully, but these errors were encountered: